Escaping outputs in CMD
问题 If I run something that returns with a & or some other character that has special meaning, and I try to use it in a script, how would I escape it? An example would be if I shared a local account with someone in the same computer, and I had a username that says John & Matt. Putting a batch file in the Desktop directory that had something like this: @ECHO OFF echo %~dp0 It would return something like this: C:\Users\John The system cannot find the path specified. And the whole script from that