我想将恢复的文件放在特定的文件夹中,例如c:/wamp/folder_test/
目前,脚本会检索文件,但将其存放在当前文件夹中:
@echo off
REM Generate the script. Will overwrite any existing temp.txt
echo open my_ip> temp.txt
echo my_username>> temp.txt
echo my_password>> temp.txt
echo get /folder/one.csv>> temp.txt
echo get /folder/two.csv>> temp.txt
echo quit>> temp.txt
REM Launch FTP and pass it the script
ftp -s:temp.txt
REM Clean up.
del temp.txt