DEV Community

IT Command
IT Command

Posted on • Updated on

Dir was unexpected in Batch

Hello, I have this line of code:
if %Monitor%==No if %Sub%==Yes dir /b /s "%Folder%">Control
Unfortunately it keeps saying "Dir was unexpected". Any ideas?

Discussion (0)