Done Redirection Switch ANSI / UNICODE

like Powershell's -Encoding switch.
It would be helpful, because in some cases I need to create an ANSI-File by
redirection, e.g. to create a command list for DISKPART.
So in a BTM I must use the construct
Code:
 Set unicodeoutput=%@OPTION[UNICODEOUTPUT]
    OPTION //UNICODEOUTPUT=NO
      Echo List Volume>%diskpart_input%
    OPTION //UNICODEOUTPUT=%unicodeoutput%
 
Aha ! Sounds interesting :smile:
 

Similar threads