sublimnl Posted August 21, 2007 Share Posted August 21, 2007 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 More sharing options...
Generator Posted August 21, 2007 Share Posted August 21, 2007 Look in Opt("RunFatalError") Link to comment Share on other sites More sharing options...
sublimnl Posted August 21, 2007 Author Share Posted August 21, 2007 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now