Richard
Wed May 10 16:23:06 CDT 2006
Hi Ed,
I would use the prnadmin.dll that comes with the Windows 2000 and Windows
2003 resource kits.
If you register this DLL you can then enumerate the defined ports on the
server and then check to see if what you are looking for exists.
Documentation in the associated prnadmin.doc guides you through this
process.
http://support.microsoft.com/default.aspx?scid=kb;en-us;321025
http://thelazyadmin.com/index.php?/archives/159-Manage-Printers-With-VBS,-WMI-and-Prnadmin.dll.html
Rich.
"ED" <ED@discussions.microsoft.com> wrote in message
news:83FAA818-0931-4C7F-85EE-6A64D05AE144@microsoft.com...
> Does anyone one know how I can create a VB script that will check for a
> printer port name (IP_IP address) and if the printer port name exists it
> will
> exit the script?
>
> Thanks,