exit

배치 스크립트 종료할 때 exit 로 종료하면 실행한 명령창도 같이 종료된다.

goto :eof

'goto :eof' 를 사용하면 실행한 스크립트만 종료된다.

참고 : https://www.lesstif.com/software-architect/batch-17105830.html

 

윈도 배치(Batch) 파일 프로그래밍 팁

ELSE 는 IF의 닫는 괄호와 같은 라인에 있어야 함.

www.lesstif.com

 

728x90

+ Recent posts