Re:Missing Easter European characters in cmd window....
"Highlag" <
pprincic@yahoo.com>wrote ...
Quote
I am trying to make a backup of my folder with Robocopy command.
Unfortunately My Folder name is Primo¾. And last letter I can type in cmd
prompt normally but if I put it in batch file and run it I get error
stating folder Primo# does not exist. Last letter is clearly not the same
as in CP852 that is used in CMD CP Vista uses for other programs.
Zdravo, Primo¾ :)
That's weird. I'm guessing that the batch file migt have been created with a
text editor (maybe even Notepad) which did not use the correct codepage when
saving the *.CMD file. Hence, the char value 0x9a somehow gets interpreted
as "#" rather than "¾".
The Windows GUI mainly uses Unicode so has no problem with charcters from
many scripts. But CMD.EXE is an ANSI (single-byte) application, so it only
has room for 256 unique chars. Which is why you need to keep switching
codepages to get a range of chars. So you see a lot more codepage issues
when using the command prompt, than when using the GUI.
What hapens if you "type" the batch file at a command prompt? Does the
directory name appear corectly in the Command Prompt Window? Or is it
distorted?
For example, do:
C:\SOMEDIR>type myfile.cmd
Does it show -
@ECHO OFF
ROBOCOPY c:\Users\Primo¾ D:\Backup /s
or does it show -
@ECHO OFF
ROBOCOPY c:\Users\Primo# D:\Backup /s
??
And, how are you running the batch file? Do you run it from a command
prompt? Or do you double-click an icon in Explorer/desktop?
--
Andrew McLaren
amclar (at) optusnet dot com dot au
-