I have a strange issue while trying to change the codepage in a .bat file.
When I execute the following .bat file in Windows 7 it executes fine.
The codepage gets changed and program.exe get executed.
The batch file:
chcp 65001
"D:\program.exe" /opt ÄiÜ
pause
However when I start the .bat file from Windows Vista the codepage gets changed and after that the batch file is exited.
So program.exe never gets executed.
However when I run the two commands manually from the commandline it does work.
Any idea how to get this working under Windows Vista from .bat file?
I’ve found a (very dirty) solution which works for me.
By the looks of it it just isn’t possible what I want to do.
What I’ve done to make it work is the following:
As I said it’s pretty dirty but it works for me.
If other answer are added here I’ll try those as well.