Re: Remove and Add Printer Script
- From: besawyer@xxxxxxxxx
- Date: 3 Aug 2006 16:54:34 -0700
DontBotherReplying wrote:
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"
I tried that and I get the same exact result.
.
- References:
- Remove and Add Printer Script
- From: besawyer
- Re: Remove and Add Printer Script
- From: DontBotherReplying
- Remove and Add Printer Script
- Prev by Date: Need help please
- Next by Date: Re: VB Script for Uptime in Windows 2000
- Previous by thread: Re: Remove and Add Printer Script
- Next by thread: PWDReset Script - Please Help
- Index(es):
Relevant Pages
|