Set Var not working
Posted: 13 Apr 2010 08:57
In the below file, filecount.txt have count "20" but the variable "varFilecount" shows "0" when echo.
Any Idea?
dir "c:\MCSLoad\*.txt" | find /c ".txt" >> filecount.txt
set /P varFileCount=<filecount.txt
echo varFileCount
REM del filecount.txt
Any Idea?
dir "c:\MCSLoad\*.txt" | find /c ".txt" >> filecount.txt
set /P varFileCount=<filecount.txt
echo varFileCount
REM del filecount.txt