So apparently it's possible to have invalid syntax in batch file comments. Could someone please explain why the code below causes a syntax error when it's in a batch file?
rem %~mdir%
The exact message cmd.exe spits out says:
The following usage of the path operator in batch-parameter
substitution is invalid: %~mdir%
For valid formats type CALL /? or FOR /?
The syntax of the command is incorrect.