rmdir via command line ?

Core FTP client questions and answers
Post Reply
stuartM
Posts: 1
Joined: Mon May 30, 2011 10:06 am

rmdir via command line ?

Post by stuartM »

I am using vba within an app to download files using corecmd via the command line and it works fine using

corecmd.exe -s -O -delsrc -d ftp://user:password@host/directory/*.* -p d:\localdir

which leaves an empty remote directory

After the transfer, i want to remove the remote directory. I have tried a second command line using:

corecmd.exe -s -rmdir -d ftp://user:password@host/directory

but it doesnt work. If I leave out -s, the gui says "Incorrect parameter"

Can I delete a directory using the commnand line? In the command line help file it lists rmdir but I cannot find an example anywhere

Thanks for any help
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

try:

corecmd.exe -s ftp://user:password@host/ -rmdir /directory/
Post Reply