MSFN Forum: How to Run exe in background? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to Run exe in background? Rate Topic: -----

#1 User is offline   Jackson0 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 02-December 08

Posted 13 December 2008 - 08:42 AM

Hello,

how can I run a exe-file in background?

Example:

C1:%wpipath%\Install\Progs\Test.exe /S
C2: Sleep 15
C3: Taskkill Test.exe

Dosen't work, the WPI hangs in the first C1-Line and do not run to C2 Until I closed the Test.exe manually.

Regards
Jackson


#2 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,754
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 December 2008 - 12:40 PM

Thats actually what WPI is supposed to do is wait for one command to finish before going on to the next one.

You could consider a simple commandfile for that section or a really easy auto-it file. (Like I have to do with limewire)

#3 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 14 December 2008 - 01:29 PM

There is a way to do that, but it is not recommended. I have visions of people do it for multiple apps and the CPU gets bogged down to a crawl, WPI gets confused, 5 posts on forum for the same thing from people complaining, etc......

What are you running that you want WPI to continue on without it finishing first?

#4 User is offline   Jackson0 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 02-December 08

Posted 15 December 2008 - 06:17 AM

Normaly is wait to finish the command the right way, but some Apps ask for User input befor they ending.
For this Apps is a nowait command and a Taskkill the only solution...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy