cmd.exe and UNICODE batch files

  • Thread starter Thread starter Konrad Kullig
  • Start date Start date
K

Konrad Kullig

Hi,

Is there any way to run UNICODE batch files in cmd.exe?
Or is there any other command line interpreter that can do this?
 
Konrad Kullig said:
Hi,

Is there any way to run UNICODE batch files in cmd.exe?
Or is there any other command line interpreter that can do this?

I don't think there is. Why don't you convert them to ASCII before running
them?

type unicode.bat > ascii.bat
 
?????? ????,

ASCII doesn't help at all when I want to use characters of other languages.

There must be an internal UNICODE interface for cmd.exe.
In the console window I can type e.g. "ren xx.dat ??????????.*" (e.g. by
copy and paste). This works.
But how can I run the same command from a file?
 
Konrad Kullig said:
?????? ????,

ASCII doesn't help at all when I want to use characters of other
languages.

There must be an internal UNICODE interface for cmd.exe.
In the console window I can type e.g. "ren xx.dat ??????????.*" (e.g. by
copy and paste). This works.
But how can I run the same command from a file?

Might depend on quite what you want to do.

If you are using ANSI-filename-oriented programs, perhaps you could use the
short-file-name.

If you want to rename files to contain accented characters (unicode 00xx
wher xx is 80..ff), then you should be able to use NOTEPAD to insert those
characters, and save them as ANSI - but be careful of the formatting andd
possibly use EDIT to clean-up.
 
Is there any way to run UNICODE batch files in cmd.exe?
Or is there any other command line interpreter that can do this?

UTF-16LE encoded batch scripts run here just fine using JPSoft's 4NT,
version 6.01.245U, *IF* the script file uses the suffix .BTM. I suspect
their free version TCC LE would do the same.
 
Back
Top