View Single Post
Old 4th February 2016, 20:40   #806  |  Link
slavanap
Registered User
 
slavanap's Avatar
 
Join Date: May 2011
Location: Moscow, Russia
Posts: 124
There's easier way to do the same thing. After reading "help start" documentation I got this working:
Code:
blocksleep.exe c:\windows\System32\cmd.exe /c start /low /b /wait __ENCODE_3D.cmd
although I advice to use this code snippet to guarantee that cmd.exe will be picked up from current Windows installation (defaults to c:\Windows\System32\cmd.exe)
Code:
for %%i in (cmd.exe) do set "cmd=%%~$PATH:i"
blocksleep.exe %cmd% /c start /low /b /wait __ENCODE_3D.cmd
P.S. blocksleep does not consume any CPU time anyway.
slavanap is offline