1

I am generating a .BAT file containing nothing but COPY commands to move some files around.

Here is an example working command:

COPY "C:\TEST.PDF" "D:\TEST.PDF"

Here is an example that isn't working:

COPY "C:\édf.pdf" "D:\édf.pdf"

Can I copy this file using a windows batch file? Or do I have to rewrite my script in a language like PERL?

Blaise Swanwick
  • 1,735
  • 1
  • 16
  • 18

1 Answers1

0

The examples I gave do work. I noticed that inside my .BAT file those special characters were getting lost because of the .BAT file's encoding.

Blaise Swanwick
  • 1,735
  • 1
  • 16
  • 18
  • was there a workaround to use the special characters, or did you use regular ASCII instead? – Lizz Nov 10 '12 at 07:40
  • You know, I couldn't say what the workaround was. How I was generating the .bat file was just outputting the COPY commands to the browser via a coldfusion server. I then copied those commands to a notepad and saved it. I presume it was because I saved the .bat file as ANSI format. When I saved the file using CFFILE with UTF8 encoding, it worked. – Blaise Swanwick Nov 12 '12 at 13:38