Batch files and parentheses
Posted by jpluimers on 2018/10/31
Answering [WayBack] delphi – post-build event with multiple if/copy combinations only execute if first file does not exist – Stack Overflow made me do a quick search for parentheses handling in batch files. TL;DR: it is a mess.
But it reveals some interesting links:
- [WayBack] Error running command shell scripts that include parentheses
- [WayBack] Enabling the internal debug outputs of cmd.exe – DosTips.com
- [WayBack] Set – Environment Variable – Windows CMD – SS64.com
- [WayBack] Parenthesis/Brackets – Windows CMD – SS64.com
- [WayBack] Cmd | Microsoft Docs
- [WayBack] for | Microsoft Docs
- [WayBack] Environment variable expansion occurs when the command is read – The Old New Thing
- [WayBack] Beware of digits before the redirection operator – The Old New Thing
- [WayBack] What this batch file needs is more escape characters – The Old New Thing
- [WayBack] Multiple Commands On A Single Windows Command Line | Miscellaneous IT Pimpery
- [WayBack] Command Redirection, Pipes – Windows CMD – SS64.com
- [WayBack] Quotes, Escape Characters, Delimiters – Windows CMD – SS64.com
–jeroen
Leave a Reply