hello,
How can I send the control BOLD character to the printer from the command line.
ex: echo character string > prn
And it prints in bold
Thank you for reading my message.
Thank you very much for your help.
Control Character
Moderator: DosItHelp
Re: Control Character
Best idea i had was (remembering):
But this only opens the print dialog, and you need a temporary file (test.html in this case should not be in use).
penpen
Edit: Corrected some flaws.
Code: Select all
@echo off
@echo off
set "text=^<html^>^<body^>^<b^>Some bold text.^</b^>^</body^>^</html^>"
set "file=test.html"
> "%file%" echo %text%
"%ComSPec%\..\rundll32.exe" "C:\WINDOWS\system32\mshtml.dll",PrintHTML "%file%"
del "%file%"
penpen
Edit: Corrected some flaws.