Display variable results form a batch file?
Posted on 2007-03-27
Wonder if you can help me?
I have the following batch code (windowsXP)
set Files=attrib.exe /s c:\data\*.* |find /c /v ""
echo the value of Files is :%Files%
nFiles should display 11, but on the echo the value of nFiles is :%Files% line I'm getting 0
Can someone please tell me why this isnt working
I have a filename called 001_004_test.xml
How do I get the value 004 and store that in a variable