Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.9k views
in .NET FTP by (400 points)
Hi,

I'm using the edtFtp free client and need some more help on using it. I've managed to get my program to delete and rename files all i need now is to move a file.

What i got is a form with a listbox (lstRemoteSrock) and 3 buttons.
Main server directory = wwwroot/admin/importfiles/

Button one deletes the selected file

Button two renames the selected file and just palces todays date infront of it e.g.
from mailorder.chr to 2007 - 05 - 22 - mailorder.chr
from CLAN_EXPORT.chr to 2007 - 05 - 22 - CLAN_EXPORT.chr

Now when they click on button 3 i need the selected file to be moved into a directory, but the directory will depend on the file name. If it's the mailorder.chr file it needs to go into wwwroot/admin/importfiles/Stock/ and if it's the CLAN_EXPORT.chr file it needs to go into wwwroot/admin/importfiles/Clan

Thanks For any Help

1 Answer

0 votes
by (51.6k points)
Hi Smeagol

The FTP protocol doesn't have move operation. Instead you'll have to download the file from the original directory, upload it to the new directory, and delete the original.

- Hans (EnterpriseDT)

Categories

...