Jump to content

[SOLVED] Best way to convert this batch


rootx
 Share

Recommended Posts

Hi, I need to convert this batch, I follow microsoft specs here https://technet.microsoft.com/en-us/library/bb491005.aspx

Ex:

start /b 1.exe "path\2.exe"
start /b mypgrcommand
start /b /wait 3.exe "path\4_.exe"
taskkill /F /IM 5.exe

Somethings like this...

RunWait( @COMSPEC & " /c start /b 1.exe 'path\2.exe' start /b mypgrcommand start /b /wait 3.exe 'path\4_.exe' taskkill /F /IM 5.exe", "", @SW_SHOW )

Thx

Edited by rootx
Link to comment
Share on other sites

Where is the solution?

Try this

$mybatchcommands = 'start /b 1.exe "path\2.exe ' & @CRLF
$mybatchcommands &= 'start /b mypgrcommand ' & @CRLF
$mybatchcommands &= 'start /b /wait 3.exe "path\4_.exe" ' & @CRLF
$mybatchcommands &= 'taskkill /F /IM 5.exe ' & @CRLF

ShellExecute($mybatchcommands,@ScriptDir,@SW_MAXIMIZE)

 

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...