Hi,

I once developed a script that added a Network Fax printer via the command
line, which runs the following rundll32 command to add the printer
magically:

---
rundll32 printui.dll,PrintUIEntry /if /b "Network Fax" /f
%SYSTEMROOT%\inf\ntprint.inf /r "\\jerome\fax" /m "HP LaserJet 4/4M PS"
---

The above command installs the "HP LaserJet 4/4M PS" driver on the local
system, calls it "Network Fax" and points it to \\jerome\fax.

I was trying to create a similar command that deleted the printer aswell,
but without having any luck:

---
rundll32 printui.dll,PrintUIEntry /dn /b "Network Fax" /c\\%COMPUTERNAME%
---

The command fails.  What am I missing?


-- 
Adam Smith
Information Technology Officer
SAGE Automation Ltd.

[EMAIL PROTECTED]
http://www.sageautomation.com

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to