Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to abort WHS script ?

Status
Not open for further replies.

sergeiY

Programmer
Feb 13, 2003
132
AU
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:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top