You are not logged in.
Pages: 1
I found a way for print control chars like BS, BEL, CR, LF, etc, using a file with these special chars.
For print it, only is required another cmd.exe instance and redirect output to 'con'.
Note 1 : 'Forfiles' command is required for generate some chars.
Note 2 : Tested on Windows 7 Ultimate x64.
Note 3: Long ago, I tried to show these chars, but fails it, now I discover this trick while I get bored, playing with 'con'.
@Echo off
SetLocal
Set "TF=%Tmp%\Chr.txt"
Set LF=^
Call :File
Echo;How to print special chars like BEL BS TAB LF CR:
Echo;-------------------------------------------------
Echo; Only call from any rountine with next command:
Echo; (Cmd /C %%Tmp%%\Type Chr.txt^)^>Con
Echo;
Echo; Example:
Echo;
Echo; ==Normally==
Type "%TF%"
Echo;
Echo; ==Extended==
( Cmd /C Type "%TF%" ) >Con
Echo; & Echo;
Echo; Now you can see those character you've always wanted
Pause >Nul
Exit
:File
Del %Tf% 2>Nul
:: Generates 1-9 ascii code chars
For /f eol^=^%LF%%LF%^ delims^= %%A in (
'forfiles /p "%~dp0." /m "%~nx0" /c "cmd /c <nul set/p=0x010x020x030x040x050x060x070x080x09"'
) Do (
<Nul Set/p=%%A>>%TF%
)
:: Generates a CRLF Char
Echo;>>%TF%
Goto :Eof
.::{Honguito98}::.
Offline
Can you explain this a little better
sorry im just a noob looking for the answer to this question
Batch,cmd,batch Games!!!
Offline
Really I don't want to spoil the moment but... http://www.dostips.com/forum/viewtopic.php?f=3&t=3857
More on the topic - http://www.dostips.com/forum/viewtopic.php?f=3&t=5324
Offline
Pages: 1