Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Am pretty sure this can be done with a simple batch command, but not sure how to write it...
At work I have to use MS Publisher most of the time, to create a whole heap of pages for a publication, and we save each one seperately (ie. s01p01.pub or s03p46.pub)...
Now this is the tricky bit, printing these all out at once is a bitch... you have to do it in explorere and manually right click on each file and hit print...
I have tried highlighting a whole group at a time and going to file>print but after 4 files it locks up trying to open seperate instances of publisher for each one, and it tries to open em all before printing any of them...
What I want to be able to do is just use a batch file that will open, print, and then close each document in turn from start to finish, so no human intervention is needed, can anyone help please?
Am using Win98, and the printer is on a network...
I know this can be done locally using:
copy *.pub prn
But not sure how to get it to print across the network... any suggestions?

You could try capturing the port to a LPT, which is an option under windows 9X. If you go the printer settings, go to the details. There is an option half way down to capture a port. Click that button, then choose a free lpt (usually lpt2 as lpt1 is taken by the local printer) and then type the UNC path to the printer (I.E. \\computername\sharedprintername), then click ok. Back at the details page choose the port for the lpt you just captured. Then at the dos prompt:
copy *.pub lpt2:
and it works like a charm.
You may want to create a new instance of the printer and use this method so you can setup the second instance just for printing DOS (incidentally when you use the printer wizard, when it asks you if you print to DOS it is essentially asking if you want to capture the port, which is the same thing I just explained).Hope that helps,
-Michael

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |