사용자 도구

사이트 도구


windows:bat

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
windows:bat [2012/05/02 11:52]
kwon37xi 새로 만듦
windows:bat [2013/06/19 13:57] (현재)
kwon37xi [명령창 없이 batch 파일 실행]
줄 1: 줄 1:
 ====== Windows Batch File ====== ====== Windows Batch File ======
-  * [[http://weblogs.asp.net/whaggard/archive/2005/01/28/get-directory-path-of-an-executing-batch-file.aspx|실행중인 bat 파일이 존재하는 디렉토리로 이동하기]] : ''cd /d %~dp0''+  * [[http://weblogs.asp.net/whaggard/archive/2005/01/28/get-directory-path-of-an-executing-batch-file.aspx|실행중인 bat 파일이 존재하는 디렉토리로 이동하기(디스크까지)]] : ''cd /d %~dp0'' 
 + 
 +===== batch 파일 안에서 다른 batch 파일 호출 ===== 
 +  * batch 파일 안에서 다른 배치파일을 그냥 실행하면 현재 배치파일의 나머지 부분은 실행이 안된다. 
 +  * ''call 다른배치파일 옵션'' 형태로 호출해야 한다. 
 + 
 + 
 +===== 명령창 없이 batch 파일 실행 ===== 
 +  * [[http://answers.yahoo.com/question/index?qid=20071011212557AAofTy6|How to run a Batch Script in Background?]] 
 +  * ''batchrun.vbs'' <code vbs> 
 +Set WshShell = WScript.CreateObject("WScript.Shell"
 +obj = WshShell.Run("test.bat", 0) 
 +set WshShell = Nothing 
 +</code> 
 +    * "test.bat"을 원하는 파일로 변경한다. 
 +  * 이 방식 보다는 [[windows:powershell|Windows Powershell]]을 사용하는게 낫다.
windows/bat.1335927149.txt.gz · 마지막으로 수정됨: 2012/05/02 11:52 저자 kwon37xi