Hi,
The following seems to work under CMD but not under TCC:
FOR /f "tokens=1,2,3" %%i in ('r:\gnu\bin\date.exe +"%%Y %%m %%d"') DO (
SET YY=%%i
SET MO=%%j
SET MD=%%k
)
I've been trying all sorts of variations, to no avail...
Also, is there a way to know if a script is being run from CMD or from TCC?
Thanks!
The following seems to work under CMD but not under TCC:
FOR /f "tokens=1,2,3" %%i in ('r:\gnu\bin\date.exe +"%%Y %%m %%d"') DO (
SET YY=%%i
SET MO=%%j
SET MD=%%k
)
I've been trying all sorts of variations, to no avail...
Also, is there a way to know if a script is being run from CMD or from TCC?
Thanks!