It's only the '%windir%' that doesn't work in Mocha. If you replace that with C:\WINDOWS it'll work just fine. (But then, you're hard-coding the location of the program)

Personally, I would NEVER issue a 'start firefox' to run a URL. It deprives the user of their right to choose their default browser! Not to mention that all of the '%windir%\System32\cmd.exe' stuff is completely unnecessary. Plus, you'll get the ugly black DOS box when you run it.

I'd do this instead (this is case senstive):

CHGVAR VAR(&CMD) VALUE('rundll32 shell32,ShellExec_RunDLL' +

More info about that can be found here:

Kiran Kumar wrote:
We use the following stcpccmd to invoke a browser based application
using Strpccmd in Firefox browser

CHGVAR VAR(&CMD) VALUE('%windir%\system32\cmd.exe + /c start firefox' *BCAT &URL)
The &URL we get as a parameter is the actual URL of the application.
We use client access in production and mocha in development environment.

The above command executes well in Client Access, but not Mocha. We
could not determine as why it does not works in mocha. We noticed that
location of windows directory is different for some users. Due to this
we do not give the absolute location of windows directory. Instead we
use wild card character "%" to locate the windows directory.

Notice: This message is intended only for use by the person or entity to which it is addressed. Because it may contain confidential information intended solely for the addressee, you are notified that any disclosing, copying, downloading, distributing, or retaining of this message, and any attached files, is prohibited and may be a violation of state or federal law. If you received this message in error, please notify the sender by reply mail, and delete the message and all attached files.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].