Board index » Windows Vista » Missing Easter European characters in cmd window....

Missing Easter European characters in cmd window....

Windows Vista36
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


-
 

Re:Missing Easter European characters in cmd window....



"Highlag" <pprincic@yahoo.com>wrote in message

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.



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.



-

Re:Missing Easter European characters in cmd window....

Ozark58 pravi:

Quote


"Highlag" <pprincic@yahoo.com>wrote in message

news:u76gBE1PIHA.280@TK2MSFTNGP03.phx.gbl...

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

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

-

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





-

Re:Missing Easter European characters in cmd window....

"Andrew McLaren" <andrew@fakeaddress.com>wrote ...

Quote


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 :-)



--

Andrew McLaren

amclar (at) optusnet dot com dot au





-