Thursday, August 01, 2019

Processing directory list in a Windows batch file

Handle a specific directory in current folder differently from other folders:
Note that if you only wanted to check if a directory existed, a simple EXIST would suffice.

Bonus: If you want to set the result of a command to a variable, you can use this. Note that you have to enclose the command with ` `, not ' '. This reminds me of my double quote problem in Visual Studio...

No comments: