Wireless Printing via DOS?

Author
Discussion

.Markski

Original Poster:

11,104 posts

277 months

Thursday 9th September 2004
quotequote all
Can it be done? I want to print a directory structure but cannot see a way in explorer to show directories and directory contents of a drive in order to print. I thought the easy way would be to do it would be to drop in to DOS do a 'dir d: /s >prn' but DOS goes back to the command line and after a few minutes it it comes up with not being able to print to LPT1.

There has to be an easy way to do this - doesn't there?

SOTONS2

14,471 posts

239 months

Thursday 9th September 2004
quotequote all
Why the word 'wireless' in your title ?

If you are printing to a USB or wireless printer, you would have to set up a Port Capture to grab the contents of LPT1 & redirect them to your printer.

Or am I missing the point ??

.Markski

Original Poster:

11,104 posts

277 months

Thursday 9th September 2004
quotequote all
Thought it might help with PD?
My laptop is wireless, I print via the router through a wired desktop PC that is connected via parallel cable to the printer.
I can print from Windows (Win2k) no problem.

SOTONS2

14,471 posts

239 months

Thursday 9th September 2004
quotequote all
Ah ha. Windows knows about (and controls) the wireless path to your printer, DOS neither knows or has direct access to the printer.

In the printer properties box, try setting up a Capture of the laptop LPT1 (see previous post). This should allow Win2k to 'grab' your DOS print job and send it to your networked printer.

Hope this helps.

.Markski

Original Poster:

11,104 posts

277 months

Thursday 9th September 2004
quotequote all
Thanks, but when I go to the Ports tab in preferences it won't let me select LPT1 - infact it won't let me un-select the wireless port.

Could I 'print' the DOS window to a file and then print that through windows perhaps?

BliarOut

72,857 posts

240 months

Friday 10th September 2004
quotequote all
Simple

set dircmd=o:gn (sets dir to alphabetical listing, directories first)

D:

Dir > filename.txt (outputs dir to a file)

Then print said file in the normal fashion. (puts the stuff that was in the file on bits of paper)


Or

Get the directory screen how you want it to look in explorer

Press alt+printscrn and paste it into paint then print the bitmap.

Edited because I thought of the other way

>> Edited by BliarOut on Friday 10th September 00:26

.Markski

Original Poster:

11,104 posts

277 months

Friday 10th September 2004
quotequote all
BliarOut said:
Simple

Dir > filename.txt (outputs dir to a file)

Then print said file in the normal fashion. (puts the stuff that was in the file on bits of paper)



That did it, well almost, the stuff I wanted was on a CD, so from the D: drive
dir /s >C:filename.txt did it.

Cheers.

antonyb

277 posts

262 months

Thursday 16th September 2004
quotequote all
or you can just do:

tree /f > filename.txt



>> Edited by antonyb on Thursday 16th September 10:18

antonyb

277 posts

262 months

Thursday 16th September 2004
quotequote all
BliarOut said:
Simple

set dircmd=o:gn (sets dir to alphabetical listing, directories first)


you need a forward slash in there:

set dircmd=/o:gn