Problem with set /A
Posted: 04 Jan 2012 12:34
Hi guys,
Is there something wrong with my set statement? I'm getting "The system cannot find the file specified."
But dir /a /s /OG D:\FYP\piclog |find /v "<DIR>" | find /c "M" alone returns a proper integer value, 21 etc.
set /A count="dir /a /s /OG D:\FYP\piclog |find /v "<DIR>" | find /c "M""
echo.%count%
Is there something wrong with my set statement? I'm getting "The system cannot find the file specified."
But dir /a /s /OG D:\FYP\piclog |find /v "<DIR>" | find /c "M" alone returns a proper integer value, 21 etc.
set /A count="dir /a /s /OG D:\FYP\piclog |find /v "<DIR>" | find /c "M""
echo.%count%