Command To Open App In Windows in background

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
zhanghuanqian
Posts: 20
Joined: Sat Jan 24, 2015 2:27 pm

Command To Open App In Windows in background

Post by zhanghuanqian » Mon Feb 09, 2015 9:43 am

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!

zhanghuanqian
Posts: 20
Joined: Sat Jan 24, 2015 2:27 pm

Re: Command To Open App In Windows in background

Post by zhanghuanqian » Sun Feb 15, 2015 1:40 am

please tell me the answer!!!

FourthWorld
VIP Livecode Opensource Backer
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

Post by FourthWorld » Sun Feb 15, 2015 2:19 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

zhanghuanqian
Posts: 20
Joined: Sat Jan 24, 2015 2:27 pm

Re: Command To Open App In Windows in background

Post by zhanghuanqian » Mon Feb 16, 2015 1:16 pm

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!

zhanghuanqian
Posts: 20
Joined: Sat Jan 24, 2015 2:27 pm

Re: Command To Open App In Windows in background

Post by zhanghuanqian » Tue Feb 17, 2015 8:00 am

ohh ,i use the function of openProcesses to solve the problem.
thanks!
thank you for your patience!

Post Reply

Return to “Windows”