Extended Character set in Batch File

T

Tim Snider

I have a batch file that I run and would like to display the extended
character of ? <ALT>251. When I edit the batch file, I hold down the alt
key and press 251 on the keypad and the correct character shows up. But when
the file runs it shows a lowercase v.

The batch file is to be run on Windows 2000 and XP systems.

Does anyone know the correct syntax for using these special characters in a
batch file?

Thanks..
 
R

Ritchie

Tim Snider said:
I have a batch file that I run and would like to display the extended
character of ? <ALT>251. When I edit the batch file, I hold down the alt
key and press 251 on the keypad and the correct character shows up. But when
the file runs it shows a lowercase v.

One possible way (if I've understood you correctly, and I'm not sure I
have): In a console window enter:-

echo/x>a.txt

but replace x with Alt+251. Now open a.txt with your editor (notepad?)
and copy a paste it into your script. Or use Edit.com.
 
S

Si Ballenger

I have a batch file that I run and would like to display the extended
character of ? <ALT>251. When I edit the batch file, I hold down the alt
key and press 251 on the keypad and the correct character shows up. But when
the file runs it shows a lowercase v.

The batch file is to be run on Windows 2000 and XP systems.

Does anyone know the correct syntax for using these special characters in a
batch file?

Thanks..

At the below link I use a slick little application called echoo
that can echo the extended character set. You can echo these
characters to files to save for copy/paste later, or echo them to
the com port for external device control. Below is beep.bat that
echos hex07, which makes the computer beep. Copy the echo line,
paste in notepad, save as beep.bat, and then double click. It
should make your PC speaker beep sevral times. You can roll your
own using echoo.com, which you make yourself using a batch file.

http://www.geocities.com/zoomkat/byte.htm

=====beep.bat=====

echo 

==================
 

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