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!
Command To Open App In Windows in background
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 20
- Joined: Sat Jan 24, 2015 2:27 pm
-
- Posts: 20
- Joined: Sat Jan 24, 2015 2:27 pm
Re: Command To Open App In Windows in background
please tell me the answer!!!
-
- VIP Livecode Opensource Backer
- Posts: 9834
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Command To Open App In Windows in background
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 20
- Joined: Sat Jan 24, 2015 2:27 pm
Re: Command To Open App In Windows in background
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!
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!
-
- Posts: 20
- Joined: Sat Jan 24, 2015 2:27 pm
Re: Command To Open App In Windows in background
ohh ,i use the function of openProcesses to solve the problem.
thanks!
thank you for your patience!
thanks!
thank you for your patience!