Re: Remove and Add Printer Script
- From: "DontBotherReplying" <SpamPouch@xxxxxxxxx>
- Date: 3 Aug 2006 04:59:19 -0700
Rem out the "On Error Resume Next" statement by putting an apostrophe
before the line. Then rerun the script. It will crash at the exact
point where the problem is occurring and it will tell you the line
number.
This will help you troubleshoot the problem. The reason it is not
crashing now is that the "On Error Resume Next" causes VBScript to
ignore any errors and move on to the next command.
As a general rule, you should not run your entire script with error
checking turned off. If you have a function that may fail, you can
turn off error checking with "On Error Resume Next" and then
immediately after the function finishes, turn error checking back on
with "On Error Goto 0"
.
- Follow-Ups:
- Re: Remove and Add Printer Script
- From: besawyer
- Re: Remove and Add Printer Script
- References:
- Remove and Add Printer Script
- From: besawyer
- Remove and Add Printer Script
- Prev by Date: Re: PWDReset Script - Please Help
- Next by Date: Re: Kill an Application via Application Name
- Previous by thread: Remove and Add Printer Script
- Next by thread: Re: Remove and Add Printer Script
- Index(es):
Relevant Pages
|