클라이언트 로컬 컴퓨터에 있는 파일 실행시키기 > script

본문 바로가기

script

클라이언트 로컬 컴퓨터에 있는 파일 실행시키기

작성일 08-08-20 11:23

페이지 정보

작성자서방님 조회 171회 댓글 0건

본문

<script type="text/javascript">
 function ClientFileExecute()
 {

      // VB Script의 WScript.Shell 객체 생성

      // (윈도우의 전체적인 동작과 스크립팅을 제어하고 쉘과 관련된 동작을 수행)
      var WshShell = new ActiveXObject("WScript.Shell");
      // 시작디렉토리 경로 맞춰주기
      WshShell.CurrentDirectory = "C:\MPC\CenterMax_v2.5\BIN\";
      // 실행파일명 (시작디렉토리 위치와 같다면 파일명만 적는다)
     var exefile = "CMax_User.exe" ;
     // 실행
     WshShell.Run( exefile );
 }


 ClientFileExecute();
</script>

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기