How to pass "chcp 1252" command to START "" /B /WAIT program?
Posted: 17 Sep 2020 03:27
I am running a batch script.
Part of this batch script is the call of an external cmdline-only program.
I start this program from batch script with
It works.
However the output of that program contains german Umlaute which are not displayed correctly.
If it would run in the current CmdPrompt I could write at the top
Since it runs in a different CmdPrompt (=environment context) I have a problem.
How can I pass the command
>nul chcp 1252
most easily for the new created Sub-CmdPrompt?
Is there a way to pass it in the start command similar to
This seems not to work
Peter
Part of this batch script is the call of an external cmdline-only program.
I start this program from batch script with
Code: Select all
start "" /NORMAL /B /WAIT D:\foobar\myprog.exe /parm1 /parm2 someparm
However the output of that program contains german Umlaute which are not displayed correctly.
If it would run in the current CmdPrompt I could write at the top
Code: Select all
>nul chcp 1252
How can I pass the command
>nul chcp 1252
most easily for the new created Sub-CmdPrompt?
Is there a way to pass it in the start command similar to
Code: Select all
start "" /NORMAL /B /WAIT ">nul chcp 1252" && D:\foobar\myprog.exe /parm1 /parm2 someparm
Peter