Skip to content

Instantly share code, notes, and snippets.

@herrcore
Created October 29, 2017 18:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herrcore/821af62c190385b394047a55b7b878ca to your computer and use it in GitHub Desktop.
Save herrcore/821af62c190385b394047a55b7b878ca to your computer and use it in GitHub Desktop.
JavaScript file to test ShellExecute using ActiveXObject
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "calc.exe";
oShell.ShellExecute(commandtoRun,"","","","1");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment