Skip to content

Instantly share code, notes, and snippets.

@gffcoutinho
Created July 18, 2015 02:34
Show Gist options
  • Save gffcoutinho/3b8b03b1a1500704e016 to your computer and use it in GitHub Desktop.
Save gffcoutinho/3b8b03b1a1500704e016 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<?job error="true" debug="true"?>
<package id="Default">
<job id="Autoload">
<script language="JScript" src="shim.js" />
<script language="JScript" src="console.js" />
<script language="JScript"><![CDATA[
// caso o script seja iniciado ao se clicar duas vezes no arquivo, ele para. para iniciar corretamente o script deve-se usar o cscript ao invés do wscript
if (/wscript\.exe/i.test(WScript.FullName)) {
WScript.Echo('WScript não é suportado. Use o Cscript pela linha de comando para executar.\nExemplo: CSCRIPT Autopilot.js');
WScript.Quit(0);
}
]]></script>
</job>
</package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment