Running BAT/CMD file with accented characters in it

后端 未结 7 902
面向向阳花
面向向阳花 2021-01-31 05:51

I have a Windows batch file which has an instruction to execute an EXE file in a location whose path contains accented characters. Following are the contents of the batch file.<

7条回答
  •  遥遥无期
    2021-01-31 06:20

    I also had the same problem. I was trying to create a simple XCOPY batch file to copy a spreadsheet from one folder to another. Its name had the "é" character in it, and it refused to copy.

    Even trying to use Katalin's and Metalcoder's suggestions didn't work on my neolithic Windows XP machine. Then I suddenly thought: Why not keep things as simple as possible (as I am myself extremely simple-minded when it comes to computers) and just substitute, in the batch file code, "é" with the wildcard character "?".

    And guess what? It worked!

提交回复
热议问题