Does anyone know if its possible to type in a number and get the resulting ASCII characters in a batch file? I think in Unix based machines you type the command then \042 or whatever number you want, but I don't know if you can do it in batch files...
gsingh2011
0
Junior Poster in Training
Recommended Answers
Jump to PostIf your echo accept the -e it would be like:
echo -e "\101"
Otherwise use printf
printf "%b\n" "\0101"
Jump to Post*Looks Around*
Batch Files Isn't Linux and Unix Shell Scripting.....No, This isn't possible with command.com / cmd.exe alone (Batch). In order to do it, you will need a special exe of some kind. Easy enough to write one.
All 6 Replies
Aia
1,977
Nearly a Posting Maven
gsingh2011
0
Junior Poster in Training
Comatose
290
Taboo Programmer
Team Colleague
SimonEyes
0
Newbie Poster
SimonEyes
0
Newbie Poster
SimonEyes
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.