Hi members and mjtnet
I wounder if "FTPDelFile>" is the command too use if you want to
delete a folder on a remote FTP server?
Seems too me that FTPDelFile> can only remove files with exact path (no
wildcard support) But that can be arranged with a FTPGetDirList> and loop
though each files.
But how do you actually remove that particular folder?
Sincerely
Can "FTPcommand>" remove folders?
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
Presently no, there is no native function to delete a directory by ftp.
You could do this though:
WriteLn>%TEMP_DIR%\ftp.txt,r,USERNAME
WriteLn>%TEMP_DIR%\ftp.txt,r,PASSWORD
WriteLn>%TEMP_DIR%\ftp.txt,r,rmdir /path/folder
WriteLn>%TEMP_DIR%\ftp.txt,r,quit
Let>RP_WAIT=1
//uncomment to run hidden
//Let>RP_WINDOWMODE=0
Run>ftp.exe -s:%TEMP_DIR%\ftp.txt ftp.server.com
DeleteFile>%TEMP_DIR%\ftp.txt
Presently no, there is no native function to delete a directory by ftp.
You could do this though:
WriteLn>%TEMP_DIR%\ftp.txt,r,USERNAME
WriteLn>%TEMP_DIR%\ftp.txt,r,PASSWORD
WriteLn>%TEMP_DIR%\ftp.txt,r,rmdir /path/folder
WriteLn>%TEMP_DIR%\ftp.txt,r,quit
Let>RP_WAIT=1
//uncomment to run hidden
//Let>RP_WINDOWMODE=0
Run>ftp.exe -s:%TEMP_DIR%\ftp.txt ftp.server.com
DeleteFile>%TEMP_DIR%\ftp.txt
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?