Hello,
I encountered the following difference between TC*.exe and cmd.exe when processing a bat file with a for-loop parameters divided into more lines:
The cmd.exe gives:
whilst TC*.exe gives:
This is just a sample - normally I have the line divided into more lines as it uses many parameters:
So my question is - how to make TC* treat for-loop parameters divided into more lines the same way as cmd.exe does?
TIA.
LuP
I encountered the following difference between TC*.exe and cmd.exe when processing a bat file with a for-loop parameters divided into more lines:
Code:
for %%j in (~
~Scr) do (
rd /q /s .\%%j
)
The cmd.exe gives:
Code:
C:\Lukas\~\Cpp~~>cmd
Microsoft Windows XP [Verze 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Lukas\~\Cpp~~>t.bat
C:\Lukas\~\Cpp~~>for %j in (~ ~Scr) do (rd /q /s .\%j )
C:\Lukas\~\Cpp~~>(rd /q /s .\~ )
Systém nemůže nalézt uvedený soubor. (= System cannot find the specified file.)
C:\Lukas\~\Cpp~~>(rd /q /s .\~Scr )
Systém nemůže nalézt uvedený soubor. (= System cannot find the specified file.)
C:\Lukas\~\Cpp~~>
whilst TC*.exe gives:
Code:
C:\Lukas\~\Cpp~~>t.bat
for %%j in (~
C:\Lukas\~\Cpp~~\t.bat [1] Usage : FOR [/A:[[-][+]rhsdaecjot] /D /F ["options"] /H /I"text" /L /Nj /O:[-]adegnrstu /R [path] /T"..." /W] %var IN ([@]set | start, step, end) [DO] command ..
~Scr) do (
TCC: C:\Lukas\~\Cpp~~\t.bat [2] Unknown command "~Scr)"
rd /q /s .\%j
TCC: (Sys) C:\Lukas\~\Cpp~~\t.bat [4] Neplatný název adresáře. (= Invalid name of a directory.)
"C:\Lukas\~\Cpp~~\%j"
)
TCC: C:\Lukas\~\Cpp~~\t.bat [6] Unknown command ")"
C:\Lukas\~\Cpp~~>
This is just a sample - normally I have the line divided into more lines as it uses many parameters:
Code:
...
for %%j in (~
~Scr Scr~ ~Scr.AxE Scr~.AxE ~Scr.Off Scr~.Off ~Scr.Srf Scr~.Srf
DXF~ DXF~.AxE DXF~.Srf DXF~.Off
~Drawings Drawings~ Drawings.~ Drawings.~~
~Test Test.~
Funs~ Tables~
~.plt) do (
rd /q /s %%i\%%j
)
...
So my question is - how to make TC* treat for-loop parameters divided into more lines the same way as cmd.exe does?
TIA.
LuP