How do I delete a file from FTP?

How do I delete a file from FTP?

Postby Ariston (BR) » Sat Oct 09, 2010 1:06 pm

Hi.

I can already send and receive files. Thanks for those who helped me. Now I need to know how to delete a file from FTP after having downloaded it. Can anyone help me?
Ariston Santos (Macapá-Amapá-Brasil)
FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
User avatar
Ariston (BR)
 
Posts: 9
Joined: Fri May 07, 2010 1:42 am
Location: Macapá - Amapá - Brasil

Re: How do I delete a file from FTP?

Postby Richard Chidiak » Sun Oct 10, 2010 12:39 pm

Hello

This is a sample

oInternet := TInternet():New()
oFTP := TFTP():New( DSITE, oInternet, DUSER, DPASS )

oFTP:DeleteFile(DFIC) // deletes a remote FTP file you must inform the complete address ex /xxx/yyy/myfile.dbf

OFTP:END()
oInternet:End()

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: How do I delete a file from FTP?

Postby Ariston (BR) » Sun Oct 10, 2010 2:31 pm

Thank you, friend. I am gonna test it now.
Ariston Santos (Macapá-Amapá-Brasil)
FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
User avatar
Ariston (BR)
 
Posts: 9
Joined: Fri May 07, 2010 1:42 am
Location: Macapá - Amapá - Brasil

Re: How do I delete a file from FTP?

Postby roberio » Sun Dec 25, 2011 6:50 pm

using the above function .... the following error occurred:

Image

help!
FWHX 11.11 # xHarbour 1.2.1 Rev.9411 ## Borland C++ 5.8.2
User avatar
roberio
 
Posts: 27
Joined: Fri Jul 22, 2011 4:04 am


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 17 guests