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
Set Var not working
Moderator: DosItHelp
Re: Set Var not working
echo %varFileCount%
Re: Set Var not working
oops..... I don't know how i missed it out.
Thanks.
Thanks.