I am ASP programmer and I need to write a simple WHS script I was told I can do it by simply replacing all Response.Write with WScript.Echo and it worked ! But I still have one more question is how to abort script execution ?
This is my script:
This is my script:
Code:
Dim objWSHShell
Dim objPwdSplat
Set objWSHShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
Set objPwdSplat = WScript.CreateObject("PwdSplat.PwdSplat")
If Err Then
Err.clear()
WScript.Echo("Unable to load the PwdSplat object")
'I NEED TO ABORT HERE how can I do it ?
End If