If you just need a quick, no nonsense script to execute a target .exe file you can use the code below:
Option Explicit Call Main() WScript.Quit(0) On Error Resume Next Sub Main Dim objShell : Set objShell = CreateObject("Wscript.Shell") objShell.Run "\\FILE_PATH\FILE.EXE", 0, True Set objShell = Nothing End Sub |
No comments:
Post a Comment