<script type="text/jscript">
var shell = new ActiveXObject("WScript.shell");
shell.run("실행할 파일 이름.exe");
</script>


run 옵션은 다음을 참고한다.
http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx

run(strCommand, [intWindowStyle], [bWaitOnReturn])

strCommand

String value indicating the command line you want to run. You must include any parameters you want to pass to the executable file.

intWindowStyle

Optional. Integer value indicating the appearance of the program's window. Note that not all programs make use of this information.

bWaitOnReturn

Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns any error code returned by the program. If set to false (the default), the Run method returns immediately after starting the program, automatically returning 0 (not to be interpreted as an error code).


신고
Posted by 시난
TAG