| |
Zaheer
Posts: 1
Score: 0
Joined: 3/23/2005
From:
Status: offline
|
I have created printer installation scripts that work fine by adding port as well as the printer. However, sometimes for whatever reason the script installs only the port and not the printer. When the script is run again, it displays errors about already existing port. Then I created a script that deletes the already exisiting printer and port and re-installs it. It works only when the there are pre-existing printers. But it does not work when there is no pre-existing printer and port. So I wanted to create a conditional script for deleting pre-exisitng printer and port using if..then statements. Here the script does not work. The script does not delete the printer when if...then statement is used. In short, I need one script that works in two situations: 1. When there is no pre-existing printer and port: Installs a port and printer. 2. When there is an existing printer or port or both: Deletes the exisiting printer and port and re-installs them. Any ideas will be greatly appreciated.
|
|