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

run 옵션은 다음을 참고한다.

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


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


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


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 시난

댓글을 달아 주세요