cmd.exe and UNICODE batch files


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?
 
Ad

Advertisements

P

Pegasus [MVP]

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
 
K

Konrad Kullig

?????? ????,

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?
 
B

billious

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.
 
Ad

Advertisements

M

Michael Bednarek

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.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cmd.exe 2
cmd.exe 0
batch file 5
batch file 3
batch file 4
Batch files 1
Batch file 3
batch file problem 8

Top