Page 1 of 1
Command To Open App In Windows in background
Posted: Mon Feb 09, 2015 9:43 am
by zhanghuanqian
i want to run other application with parameters in background without a gui with LC which is at "C:\Program Files\".
and how can i know the app has started and exited or not?
use shell,launch,open process?which function or command can hide the app and also can send a parameter to the app?
thanks everyone!
Re: Command To Open App In Windows in background
Posted: Sun Feb 15, 2015 1:40 am
by zhanghuanqian
please tell me the answer!!!
Re: Command To Open App In Windows in background
Posted: Sun Feb 15, 2015 2:19 am
by FourthWorld
Please only bump a topic no more than once per day. Those who offer help here are volunteers, willing to lend a hand where they can, but have no obligation to do so. If you don't see an answer immediately, please be patient.
You're on the right track with shell.
When you looked up the shell command in the Dictionary, you may have noticed the hideConsoleWindows property among the See Also items for that entry. From your description it sounds like those two elements should get you going with launching a an app without a visible console window.
Re: Command To Open App In Windows in background
Posted: Mon Feb 16, 2015 1:16 pm
by zhanghuanqian
got it!
put df&"/myapp.exe" & " -b -r "&df&"/temp.raw -o dy.log "&df&theFilePath into tCommand
set the hideConsoleWindows to true
open process tCommand
close process tCommand
but how can i know myapp.exe is quit or not?
thank you!
thanks everyone!
Re: Command To Open App In Windows in background
Posted: Tue Feb 17, 2015 8:00 am
by zhanghuanqian
ohh ,i use the function of openProcesses to solve the problem.
thanks!
thank you for your patience!