I have a strange problem while trying to change the code page in a .bat file.
When I run the following .bat file on Windows 7, it works fine.
The code page is modified and program.exeexecuted.
Batch file:
chcp 65001
"D:\program.exe" /opt ÄiÜ
pause
However, when I run the .bat file from Windows Vista, the code page changes and a batch file is issued after that.
That program.exewill never be done. However, when I run two commands manually from the command line, it works.
Any idea how to make this work under Windows Vista from a .bat file?
source
share