Skip to content

Instantly share code, notes, and snippets.

@blurbdust
Created July 17, 2020 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blurbdust/d8b2c57c3b06f325cd13e5b903c7f611 to your computer and use it in GitHub Desktop.
Save blurbdust/d8b2c57c3b06f325cd13e5b903c7f611 to your computer and use it in GitHub Desktop.
<script type="text/javascript" language="javascript">
function acitve() {
var oShell = new ActiveXObject("wscript.shell");
oShell.Run("cmd.exe & pause");
}
function wscript() {
var shell = WScript.CreateObject("WScript.Shell");
shell.Run("cmd.exe & pause");
}
</script>
calling it with:<br/>
<a href="javascript:acitve()">cmd ActiveX</a>
<br/>
<a href="javascript:wscript()">cmd WScript</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment