set SpoolDirectory for printers in registry

J

Joeri KUMBRUCK

Hello,

I'm trying to change the SpoolDirectory of all my printers on my
printserver, but I'm not able to do this without stopping and
starting the print spooler. I want all my printers to have their own
spooldirectory and there is a registry setting named "SpoolDirectory"
that every printer has and that you can change to a path of your
choice. I use a script to create printers, but am not able to set the
spooldirectory. I used "rundll32 printui.dll,PrintUIEntry" and
"prnadmin.dll", but none has the option to set the spooldirectory. I
can change it straight in the registry bu therefor I need to
start/stop the printspooler to apply changes and I don't want to do
that. Can anyone help me with this?

thanks in advance for any help,

Joeri Kumbruck
 
G

Greg Evensen

Joeri,
You didn't say why you want the SpoolDirectory set
differently for each printer, but it sounds like you want to
do this on a regular basis because you don't want to stop the
service. I thought I would offer an alternative to changing
the spooler settings for each printer.

We have a product that can be set up to spool the resulting
printer output files to a subdirectory based on the printer name,
user name, computer name, or driver name. It automatically names
the file and spools it to the selected folder. It installs as a
printer port and can be configured to execute a post-print
application, if desired, with the environment populated with
details of the print job.

Great care has been taken to insure that changes to the port
only occur on a per-job basis, so that print jobs don't get
chopped up. It also supports security on a per-port basis.

Virtual Port Monitor

http://www.alphatronics.com/AVPMon.html

Greg
 
C

Christoph Lindemann

Hi Joeri,

Setting different spooldirectories for different printers, can only be done
by
changing the registry and then restarting the spooler. There is no functions
to
set them (and no functions to get the spooler to read them).
The spooler service reads the printer specific spooldirectory keys ONLY
during start up.

By using spooler API calls, you can only change the DefaultSpoolDirectory,
but not the printer specific spooldirectory.

/Christoph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top