- Nov
- 3
- 0
Given the following batch file, the "for %%f in" never enters the block using TCC LE 13.04.63 on Win 7 64 bit. An old 4NT 7.00.311 works fine.
If I removed the statement if not exist %cdciBinPath%\*.* md %cdciBinPath% it works.
/////////////////////////////////
@echo off
set binFiles=1 2
set cdciBinPath=.\temp
if not "%binFiles%"=="" (
echo xxxxxxxxxxxxxxxxxxx
if not exist %cdciBinPath%\*.* md %cdciBinPath%
for %%f in (%binFiles%) do (
echo yyyyyyyyyyyyyyyyyyyyyy
if errorlevel 1 (
set ErrorArg=%%f
goto ErrFileMissing
)
)
)
goto end
:end
If I removed the statement if not exist %cdciBinPath%\*.* md %cdciBinPath% it works.
/////////////////////////////////
@echo off
set binFiles=1 2
set cdciBinPath=.\temp
if not "%binFiles%"=="" (
echo xxxxxxxxxxxxxxxxxxx
if not exist %cdciBinPath%\*.* md %cdciBinPath%
for %%f in (%binFiles%) do (
echo yyyyyyyyyyyyyyyyyyyyyy
if errorlevel 1 (
set ErrorArg=%%f
goto ErrFileMissing
)
)
)
goto end
:end