|Im using a batch file to copy 100s of files. . Eg: |
Here's 2 lines from my batch file:
Problem is because the variable
%vare1% is the filename "windows!!.txt" and has an exclamation in it, cmd misreads it as "windows .txt" thus giving the message thast the file was not found.
I get the same problem with renaming or moving filenames with an exclamation in a batch file. Any way to fix this?