我正在使用以下ftp命令將文件從本地mashine傳輸到遠程mashine。之後,我想從本地mashine中刪除文件。我應該使用哪個命令來處理我的情況?該命令必須在輸入後插入。如何使用ftp命令從本地機器刪除文件?
open xx.xxx.xxx.xx
username
password
cd \path\to\remote\mashine
lcd \path\to\local\mashine
binary
mput *.*
disconnect
bye
我正在使用以下ftp命令將文件從本地mashine傳輸到遠程mashine。之後,我想從本地mashine中刪除文件。我應該使用哪個命令來處理我的情況?該命令必須在輸入後插入。如何使用ftp命令從本地機器刪除文件?
open xx.xxx.xxx.xx
username
password
cd \path\to\remote\mashine
lcd \path\to\local\mashine
binary
mput *.*
disconnect
bye
移動本地文件到一個臨時位置開始FTP會話之前
move *.* TEMPDIR
上傳到
mput TEMPDIR\*.*
刪除它們時,FTP會話結束
del /q TEMPDIR\*.*
仍然無法正常工作.... – user2242558
也許你不明白答案。您需要創建一個帶有如下行的批處理文件(.bat):'move *。* TEMPDIR' - 'ftp -s:ftp.txt' - 'del/q TEMPDIR \ *。*' –
你tryied 「刪除x.x中」?用星號代替我的表達式中的「x」(Stackoverflow在這裏不允許星號)。刪除是用於刪除文件的ftp命令。 – statosdotcom