PC Review


Reply
Thread Tools Rate Thread

cmd.exe and UNICODE batch files

 
 
Konrad Kullig
Guest
Posts: n/a
 
      20th Aug 2009
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?


 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      20th Aug 2009

"Konrad Kullig" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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


 
Reply With Quote
 
Konrad Kullig
Guest
Posts: n/a
 
      20th Aug 2009

?????? ????,

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]" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
>
> "Konrad Kullig" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>



 
Reply With Quote
 
billious
Guest
Posts: n/a
 
      20th Aug 2009

"Konrad Kullig" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Pegasus [MVP]" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:(E-Mail Removed)...
>>
>> "Konrad Kullig" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 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.


 
Reply With Quote
 
Timo Salmi
Guest
Posts: n/a
 
      22nd Aug 2009
Konrad Kullig wrote:
> Is there any way to run UNICODE batch files in cmd.exe?


http://www.netikka.net/tsneti/info/t...#ansivsunicode

All the best, Timo

--
Prof. Timo Salmi private.php?do=newpm&u= ftp & http://garbo.uwasa.fi/
Hpage: http://www.uwasa.fi/laskentatoimi/en...nel/salmitimo/
Department of Accounting and Finance, University of Vaasa, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.htm
 
Reply With Quote
 
Michael Bednarek
Guest
Posts: n/a
 
      22nd Aug 2009
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"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
pst files - changing non-unicode to unicode =?Utf-8?B?QmVhZ3NsaWZl?= Microsoft Outlook Discussion 7 20th May 2006 03:38 PM
Converting non-unicode data files to unicode data files =?Utf-8?B?RGF2aWQgSi4gTW9ubmlu?= Microsoft Outlook Installation 3 15th Jul 2005 04:02 PM
convert unicode .pst files to non-unicode files Russ Bird Microsoft Outlook 1 25th Jan 2004 11:42 PM
Photo Editor Batch supporting batch compression JPG files 29150 Freeware 2 23rd Jun 2003 06:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 PM.