====== 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'' ===== batch 파일 안에서 다른 batch 파일 호출 ===== * batch 파일 안에서 다른 배치파일을 그냥 실행하면 현재 배치파일의 나머지 부분은 실행이 안된다. * ''call 다른배치파일 옵션'' 형태로 호출해야 한다. ===== 명령창 없이 batch 파일 실행 ===== * [[http://answers.yahoo.com/question/index?qid=20071011212557AAofTy6|How to run a Batch Script in Background?]] * ''batchrun.vbs'' Set WshShell = WScript.CreateObject("WScript.Shell") obj = WshShell.Run("test.bat", 0) set WshShell = Nothing * "test.bat"을 원하는 파일로 변경한다. * 이 방식 보다는 [[windows:powershell|Windows Powershell]]을 사용하는게 낫다.