Reputation: 357
I am using the following ftp commands to transfer files from my local mashine to the remote mashine. After that I want to delete the files from the local mashine. Which command I should use for my case? The command must be inserted after mput .
open xx.xxx.xxx.xx
username
password
cd \path\to\remote\mashine
lcd \path\to\local\mashine
binary
mput *.*
disconnect
bye
Upvotes: 0
Views: 4693
Reputation: 175876
Move the local files to a temporary location before starting the FTP session
move *.* TEMPDIR
Upload them
mput TEMPDIR\*.*
Delete them when the FTP session ends
del /q TEMPDIR\*.*
Upvotes: 2