Computing.Net > Forums > Disk Operating System > Batch file to print across a network...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file to print across a network...

Reply to Message Icon

Name: Jeffrey
Date: March 1, 2001 at 16:41:24 Pacific
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Michael Daugherty
Date: March 2, 2001 at 06:56:30 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch file to print across a network...

Dos batch file to exclude days!! www.computing.net/answers/dos/dos-batch-file-to-exclude-days/13643.html

Running a batch file once a week www.computing.net/answers/dos/running-a-batch-file-once-a-week/4900.html

printing from a batch file www.computing.net/answers/dos/printing-from-a-batch-file/17010.html