Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Missing Easter European characters in cmd window....

Reply
Thread Tools Display Modes

Missing Easter European characters in cmd window....

 
 
Highlag
Guest
Posts: n/a

 
      12-15-2007
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
 
Reply With Quote
 
 
 
 
Ozark58
Guest
Posts: n/a

 
      12-15-2007

"Highlag" <> wrote in message
news:...
>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.

 
Reply With Quote
 
Highlag
Guest
Posts: n/a

 
      12-15-2007
Ozark58 pravi:
>
> "Highlag" <> wrote in message
> news:...
>> 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
 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      12-15-2007
"Highlag" <> wrote ...
>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


 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      12-16-2007
"Andrew McLaren" <> wrote ...
>
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Strange characters appear in DOS window using PING command Darth_Lager Windows Vista Performance 1 02-19-2008 12:48 PM
Missing Window Settings Terry Windows Vista File Management 2 10-25-2007 03:32 AM
Windows Vista Tips / Tweaks / Easter Eggs tokjad@gmail.com Windows Vista General Discussion 1 05-12-2007 03:11 PM
Windows Vista Easter Eggs Howard Windows Vista General Discussion 3 05-23-2006 12:15 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59