3
배치 파일에 파일이 있는지 확인하는 방법은 무엇입니까?
이 작업을 수행하는 .BAT파일 을 만들어야합니다 . 경우 C:\myprogram\sync\data.handler, 출구 존재; 경우 C:\myprogram\html\data.sql수행, 종료 존재하지; 년 C:\myprogram\sync\을 제외한 모든 파일과 폴더를 삭제 ( test, test3과 test2) 복사 C:\myprogram\html\data.sql에C:\myprogram\sync\ 옵션으로 다른 배치 파일을 호출하십시오 sync.bat myprogram.ini. Bash 환경에 있다면 나에게는 쉽지만 파일이나 폴더가 있는지 여부와 파일 또는 폴더인지 테스트하는 방법을 모르겠습니다.
186
windows
batch-file
cmd