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 "%20" in them:
move /y "\myservermyfolderfile%20name.txt" "\myserverotherfolder"
This fails as it tries to find a file with the name:
\myservermyfolderfile0name.txt
Is there any way to ignore %
? I'm not able to alter the file generated to escape this, such as by doubling percent signs (%%
), escaping with /
or ^
(caret), etc.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…