If check variable
Posted: 13 Apr 2010 10:35
My varFileCount is 10, but the echo message not displayed.
Where am I missing? Please....
dir "c:\MCSLoad\*.txt" | find /c ".txt" >> filecount.txt
set /P varFileCount=<filecount.txt
del filecount.txt
if NOT %varFileCount% == 20(
echo File Count Not Match
)
Where am I missing? Please....
dir "c:\MCSLoad\*.txt" | find /c ".txt" >> filecount.txt
set /P varFileCount=<filecount.txt
del filecount.txt
if NOT %varFileCount% == 20(
echo File Count Not Match
)