我有一个zip文件,其中包含带有空文件夹和非空文件夹的子目录,我只是尝试使用mput命令将文件复制到ftp文件夹,但只复制没有子目录的文件。以下是我的代码,请建议
@ECHO OFF
SET current=%cd%
PUSHD ..
SET parent=%cd%
POPD
SET P Fold=Enter Folder Name:
echo user FTP123 > ftpcmd.dat
echo RESULTS>> ftpcmd.dat
ECHO LCD "%parent%\%Fold%">> ftpcmd.dat
ECHO CD /Releases/Office >> ftpcmd.dat
ECHO MKDIR palaccounts >> ftpcmd.dat
ECHO CD /Releases/Office/palaccounts/>> ftpcmd.dat
ECHO BINARY >> ftpcmd.dat
ECHO prompt >> ftpcmd.dat
echo MPUT palaccounts(02.02.2016).zip>> ftpcmd.dat
ECHO bye >> ftpcmd.dat
ftp -n -s:ftpcmd.dat 182.12.125.631
PAUSE