I am running on Wondows XP and trying to start an application on windows without having the console window appear. The hideConsoleWindows command does not seem to have an effect. Any thoughts? Here is my code:
on mouseUp
put "start java -jar 'C:/Documents and Settings/pspringer/ganymedeWorkspace/IPtest/bin/QueryController.jar'" into myShell
replace "'" with quote in myShell
put myShell
set the hideConsoleWindows to true
get shell(myShell)
put it
end mouseUp
on mouseUp
put "start java -jar 'C:/Documents and Settings/pspringer/ganymedeWorkspace/IPtest/bin/QueryController.jar'" into myShell
replace "'" with quote in myShell
### !!! Windows path delimiter!
replace "/" with "\" in myShell
### !!!
put myShell
set the hideConsoleWindows to true
get shell(myShell)
put it
end mouseUp
Thanks for the suggestion Klaus. I tried it, but my command tool window is still popping up. I am starting to think I have to approach this from the java side. The command tool window has a little java icon on the left hand side of the window bar, where you would normally see an icon of a command tool with a "C:\" in it. So java seems to have it's fingers in the process even at that level.
I have managed to get the result I want by adding "/min" to the windows command, starting the window minimized. I believe that removing "start" will cause the Rev app to lose control until the windows application terminates, which is not what I want.