Combreal

try-catch.vbs

Jul 19th, 2021 (edited)
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. On Error Resume Next
  2. Err.Clear
  3. Set objLocalUser = GetObject("WinNT://PCADMIN113/mjolla,user")
  4. If(err.number <> 0) Then
  5.     wscript.echo("lol")
  6.     Err.Clear
  7. End if
  8. On Error Resume Next
  9. wscript.echo("Finish")
Add Comment
Please, Sign In to add comment