Printing for DOS Programs

  • Thread starter Thread starter Jeff Needle
  • Start date Start date
J

Jeff Needle

Is there a freeware way to trick an old DOS program into printing to the
a printer plugged into the USB port?

Thanks.

Jeff Needle
 
Maybe this way.

If you don't want another program, here's 2 batch files, one for
creating a .txt file, the other sends it straight to the printer.

Open Notepad (only), type in **exactly** (or copy/paste from here)

For the .txt file:

dir %1 > C:\list.txt: cls

& save as: textdir.bat

For the printer:

dir %1 > lpt1: cls

& save as: printdir.bat

Save these two files in a "Send to" folder, that way you can just right
click on the folder to execute.
 
Maybe this way.

If you don't want another program, here's 2 batch files, one for
creating a .txt file, the other sends it straight to the printer.

Open Notepad (only), type in **exactly** (or copy/paste from here)

For the .txt file:

dir %1 > C:\list.txt: cls

& save as: textdir.bat

For the printer:

dir %1 > lpt1: cls

& save as: printdir.bat

Save these two files in a "Send to" folder, that way you can just right
click on the folder to execute.
I just read this. I have a dos program I haven't been able to print from
since I got my new printer.

Are those 2 files made on the same notepad or 2 different ones? This
"Send to" folder, where do I put it? Do I understand if I click on the
folder, it will go to the printer and the printer will start? But how do
I tell it what I want it to print?
L.D.
 
Maybe this way.

If you don't want another program, here's 2 batch files, one for
creating a .txt file, the other sends it straight to the printer.

Open Notepad (only), type in **exactly** (or copy/paste from here)

For the .txt file:

dir %1 > C:\list.txt: cls

& save as: textdir.bat

For the printer:

dir %1 > lpt1: cls

& save as: printdir.bat

Save these two files in a "Send to" folder, that way you can just right
click on the folder to execute.


Thanks.
 
G'day L.D.
Don't know your operating system , I have XP pro & the correct SendTo
folder is here > C:\Documents and Settings\John

"Are those 2 files made on the same notepad or 2 different ones?"
Different.

Use Copy and Paste, to make sure you don't have any typo's.

1st one > dir %1 > C:\list.txt: cls
Now click on Save as > textdir.bat
You should save it in your SendTo folder. Example, I would save it on
my computer, in > C:\Documents and Settings\John

2nd one > dir %1 > lpt1: cls
Now click on Save as > printdir.bat
You should save it in your SendTo folder. Example, I would save it on
my computer, in > C:\Documents and Settings\John

Now, when you want to send something to the printer, right click on the
file, then SendTo & then printer.

If needed, there are programs available.
 
G'day Jeff, how did you go, L'D' emailed me & I included screenshots of
the above, can do the same for you, if needed.

John.
 
G'day Jeff, how did you go, L'D' emailed me & I included screenshots of
the above, can do the same for you, if needed.

John.

I haven't gotten back to the site yet to try it. It's my former
employer, and I need to wait for someone to pick me up and bring me to
the office.

I'll report back when I know something.

Thanks!
 
Back
Top