Sign in to follow this  
Followers 0
sublimnl

Error message suppression

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



Look in Opt("RunFatalError")

Share this post


Link to post
Share on other sites

Thank you!

Share this post


Link to post
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
Sign in to follow this  
Followers 0