Created
July 18, 2015 02:34
-
-
Save gffcoutinho/3b8b03b1a1500704e016 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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