Skip to content

Instantly share code, notes, and snippets.

@omid-ebrahimi
Last active December 29, 2018 12:44
Show Gist options
  • Save omid-ebrahimi/d07e71a22ebae1f66ef05b60d5b38a6e to your computer and use it in GitHub Desktop.
Save omid-ebrahimi/d07e71a22ebae1f66ef05b60d5b38a6e to your computer and use it in GitHub Desktop.
Run bat/cmd files in background
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "D:\...\file.cmd" & Chr(34), 0
Set WinScriptHost = Nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment