|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
WSH - Hide Error Message
Hello,
I have created a script to perform some administration tasks, occasionally these may produce an error were items do not exist or users do not have rights to shared resources. Does anyone know anyway of hiding/disabling error messages appearing on then users screen as the script is ran through AD Thanks |
|
#2
|
||||
|
||||
|
You could always use ON ERROR RESUME NEXT in those portions of the script.
__________________
jmurrayhead Did I help you out? Make me popular by clicking the icon!New Members:Proper way to post a question Powered by ASP.Net |
|
#3
|
||||
|
||||
|
ON ERROR RESUME NEXT will stop WSH from flagging errors, however, you really should "handle" them yourself. Take a look at my article below.
Error Trapping and Handling Third-Party Output
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > WSH - Hide Error Message |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|