Ignore percent sign in batch file

后端 未结 6 2405
北恋
北恋 2020-11-22 14:33

I have a batch file which moves files from one folder to another. The batch file is generated by another process.

Some of the files I need to move have the string \"

6条回答
  •  不知归路
    2020-11-22 15:00

    In batch files, the percent sign may be "escaped" by using a double percent sign ( %% ). That way, a single percent sign will be used within the command line. from http://www.robvanderwoude.com/escapechars.php

提交回复
热议问题