Special Characters in Batch (.bat) - MS-DOS

Solved
bricomachin Posted messages 245 Registration date   Status Member Last intervention   -  
 Gloops -
Hello,

I didn't quite understand where to post this so that everyone would see it, so I'm putting it here.

I had a long-standing problem: in batch when you write:
@echo off echo à pause


it writes:
Ò


So I searched and found a way to help other people:

Write your code in an .rtf file and then: save as... and there choose in type: Document in MS-DOS format.

You just need to change the extension to .bat afterwards and it's done!!!

There you go...

Thank you for your attention,

Bricomachin

Configuration: Windows XP / Firefox 3.6.12

1 answer

cs-bilou Posted messages 836 Status Member 164
 
To make an @ in DOS, you need to press (Alt+0160).

Bilou.
--
There are days when you shouldn't mess with me.
And there are days every day!
1
Gloops
 
That's nice of you to say, Billou, but Bricomachin's problem was making a grave accent appear instead of an O with an accent.
While you're changing the subject, more and more laptops on the market either lack a numeric keypad or their numeric keypad doesn't support Alt + ASCII code.
This issue is addressed here: http://www.zailes.org/ClavierNum/ClavierNum.aspx
There is a more flexible version of this product, but it is not online yet.
0