0
ftp 연결을 통해 한 서버에서 다른 서버로 여러 폴더를 다운로드하려면 어떻게해야합니까? "backup"이라는 메인 폴더에는 폴더 A, 폴더 B 및 폴더 C라는 하위 폴더가 있습니다. 내 배치 파일은 다음과 같습니다.FTP 배치 파일 다중 폴더 다운로드
@ftp -i -s:"%~f0"&GOTO:EOF
open myserver
myid
mypw
hash
bin
lcd D:\Users\Desktop\test
#cd smsbackup/
cd backup/ #my main folder location
mget *
위의 스크립트를 실행할 때 파일을 찾을 수 없습니다. 따라서 모든 폴더마다 스크립트를 작성해야합니다. 아래와 같이 쓸 때 일합니다.
@ftp -i -s:"%~f0"&GOTO:EOF
open myserver
myid
mypw
hash
bin
lcd D:\Users\Desktop\test
#cd smsbackup/
cd FolderA/ #my main folder location
mget *
... 다른 스크립트의 경우 FolderB 및 FolderC로 대체하십시오.
단일 배치 파일로 여러 폴더를 다운로드 할 수 있습니까? 미리 감사드립니다.