Re: Remove and Add Printer Script




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.

.



Relevant Pages

  • Re: Remove and Add Printer Script
    ... Then rerun the script. ... It will crash at the exact ... turn error checking back on ...
    (microsoft.public.scripting.vbscript)
  • Re: Reading a text file
    ... What is the exact look of the date in Excel, ... Better to bite the bullet and have the script leverage EXCEL to extract the ... manually exporting a csv file. ... back into the spread sheet as to when it sent the email notification. ...
    (microsoft.public.scripting.wsh)
  • Need Help with Call Shell("cmd /K netstat") Function!!!
    ... I have found a better solution using a script based FTP ... using the Command Prompt the "Call Shell" function to be exact. ... however come into a problem with using the Call Shell function. ...
    (microsoft.public.excel.programming)
  • Re: Simple shell question
    ... I'm trying to write a script to start my J2EE server so I don't ... "exact lines" ?? ... "ik _heb_ niets tegen Microsoft, ...
    (alt.os.linux.suse)
  • Re: Loosing price variable only when assigning to variable name
    ... Here is my exact script and exact file I'm working on. ... used a Firefox extension that allows me to call an external editor ...
    (comp.unix.shell)