VBSCript的錯誤處理類似java例外處裡

 On Error Resume Next

Err.Clear

執行內容



If Err.Number <> 0 Then
發生錯誤要做的事情

Err.Clear
End If
On Error Goto 0

留言

此網誌的熱門文章