Command Line to "Add a Port" to a NT4, W2000

I need to add a filenamed port, such as, “C:\” to a local
printer system via a NON-user interfaced method, such as a command-line,

There’s a nifty new utility in W2000 that allows manipulation(adding,
getting, setting and deleting) of a printer. For those of you who aren’t
familiar with it, here is an example:

rundll32 printui.dll,PrintUIEntry /l “i386” /if /b “Printer Driver Name” /f
“instptr.inf” /r “FILE:” /m “Printer Driver (Model)”

This will add a printer named “Printer Driver (Model)” to your system using
the “instptr.inf” installation file, make it “print to file” and use the
“Printer Driver Name” driver.

To get all of the options and switches:
rundll32 printui.dll,PrintUIEntry /?

Now, I need to be able to install to a predefined port. For example, a
filenamed port, such as “C:\”, overwriting each time.

With this utility, you must have an existent port and I’d like to do the
entire install from a cmd line. so I need to be able to create a filenamed
port on the fly froma a command line.

Has anyone done this? Any hints or help would be marvelous!!

You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)