Jump to content

Error message suppression


Recommended Posts

Is there a way to suppress error messages? I have a script that runs osql.exe and passes login information on the command line. Sometimes the script errors out on this line (haven't figured out why yet) and the error then shows the entire command line including the authentication information. I tried to pass the command line to a variable and then just do RunWait(@CompSpec & " /c" & $line) instead but the error still shows the value of $line in this case as well. Basically I need a way to hide this error or cut down on the verbosity until I am able to figure out how to prevent the error completely.

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...