What are some of the lesser know, but important and useful features of Windows batch files?
Guidelines:
- One feature per answer
- Give both a short description of the feature and an example , not just a link to documentation
- Limit answers to native funtionality , i.e., does not require additional software, like the Windows Resource Kit
Clarification: We refer here to scripts that are processed by cmd.exe, which is the default on WinNT variants.
http://stackoverflow.com/questions/148968/windows-batch-files-bat-vs-cmd http://stackoverflow.com/questions/148968/windows-batch-files-bat-vs-cmd