Missing Easter European characters in cmd window....

H

Highlag

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.

Any way around this? I was checking to rename folder, but at present I
is too much of a hassle. I really dont want to edit registry for this.

Not sure how can I edit txt file to insert correct letter in CP852.

Anyone got any ideas?

Regards!
Primoz
 
O

Ozark58

Highlag said:
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.

Any way around this? I was checking to rename folder, but at present I is
too much of a hassle. I really dont want to edit registry for this.

Not sure how can I edit txt file to insert correct letter in CP852.

Anyone got any ideas?

Regards!
Primoz

I suggest simply making a copy of the folder and rename that folder to
anything you like.
 
H

Highlag

Ozark58 pravi:
I suggest simply making a copy of the folder and rename that folder to
anything you like.
Unfortunately this is MY-documents folder, so I cannot just rename it.
Believe me, This was my first thought. Renaming requires "mayor"
Registry editing. Renaming-(F2) does not work at all.

Regards!

Primoz
 
A

Andrew McLaren

Highlag said:
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?
 
A

Andrew McLaren

Andrew McLaren said:
Zdravo, Primo¾ :)
as "#" rather than "¾".
ROBOCOPY c:\Users\Primo¾ D:\Backup /s

Hmm, that's weird ... my "z with Caron" char (Unicode 0x0173) showed up as a
three-quarters sign, instead of a z with caron. Anyway, you get the picture,
3/4 was meant to be a z with a \/ on top :)
 

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

Top