rootx Posted December 9, 2017 Posted December 9, 2017 (edited) 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 December 9, 2017 by rootx
Skysnake Posted December 10, 2017 Posted December 10, 2017 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?
rootx Posted December 10, 2017 Author Posted December 10, 2017 I forgot to write it . Solution is &&, to concatenate a multiple cmd in a line in ms dos.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now