View Single Post
Old 4th February 2016, 22:17   #808  |  Link
slavanap
Registered User
 
slavanap's Avatar
 
Join Date: May 2011
Location: Moscow, Russia
Posts: 124
Yes, %ComSpec% is good way to call cmd.exe. Please use it instead my method. Also, this one
Code:
start /low "D:\BD3D2MK3D\toolset\BlockSleep.exe" %COMSPEC% /c __ENCODE_3D.cmd
works on my PC if I put it in .bat file. Maybe you need to escape " quotes in TCL?

[ADDED] I advise to add your path at the beginning of PATH variable,
Code:
set PATH=D:\BD3D2MK3D\toolset;%PATH%
because scanning for executables in PATH starts from the beginning, e.g. if you have
Code:
set PATH=%PATH%;D:\BD3D2MK3D\toolset
and there's blocksleep.exe in folder, that is in %PATH% then that first executable will be started (i.e. not one from D:\BD3D2MK3D\toolset).

Last edited by slavanap; 4th February 2016 at 22:23.
slavanap is offline