Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cmd.exe and UNICODE batch files

365 views
Skip to first unread message

Konrad Kullig

unread,
Aug 20, 2009, 10:40:35 AM8/20/09
to
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?


Pegasus [MVP]

unread,
Aug 20, 2009, 11:00:22 AM8/20/09
to

"Konrad Kullig" <x...@yyy.zz> wrote in message
news:eXHCvQaI...@TK2MSFTNGP02.phx.gbl...

> 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


Konrad Kullig

unread,
Aug 20, 2009, 11:37:52 AM8/20/09
to

?????? ????,

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?


"Pegasus [MVP]" <ne...@microsoft.com> schrieb im Newsbeitrag
news:efPJybaI...@TK2MSFTNGP03.phx.gbl...

billious

unread,
Aug 20, 2009, 12:06:44 PM8/20/09
to

"Konrad Kullig" <x...@yyy.zz> wrote in message
news:u585xwaI...@TK2MSFTNGP03.phx.gbl...

>
> "Pegasus [MVP]" <ne...@microsoft.com> schrieb im Newsbeitrag
> news:efPJybaI...@TK2MSFTNGP03.phx.gbl...
>>
>> "Konrad Kullig" <x...@yyy.zz> wrote in message
>> news:eXHCvQaI...@TK2MSFTNGP02.phx.gbl...
>>> 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?
>
>
>

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.


Timo Salmi

unread,
Aug 21, 2009, 10:42:31 PM8/21/09
to
Konrad Kullig wrote:
> Is there any way to run UNICODE batch files in cmd.exe?

http://www.netikka.net/tsneti/info/tscmd028.htm#ansivsunicode

All the best, Timo

--
Prof. Timo Salmi mailto:t...@uwasa.fi ftp & http://garbo.uwasa.fi/
Hpage: http://www.uwasa.fi/laskentatoimi/english/personnel/salmitimo/
Department of Accounting and Finance, University of Vaasa, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.htm

Michael Bednarek

unread,
Aug 22, 2009, 9:21:29 AM8/22/09
to
On Thu, 20 Aug 2009 16:40:35 +0200, Konrad Kullig wrote in
microsoft.public.win2000.cmdprompt.admin:

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

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"

0 new messages