FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC How do I delete a file from FTP?
Posts: 9
Joined: Fri May 07, 2010 01:42 AM
How do I delete a file from FTP?
Posted: Sat Oct 09, 2010 01: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.
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: How do I delete a file from FTP?
Posted: 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
Posts: 9
Joined: Fri May 07, 2010 01:42 AM
Re: How do I delete a file from FTP?
Posted: Sun Oct 10, 2010 02:31 PM

Thank you, friend. I am gonna test it now.

Ariston Santos (MacapĆ”-AmapĆ”-Brasil)

FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
Posts: 27
Joined: Fri Jul 22, 2011 04:04 AM
Re: How do I delete a file from FTP?
Posted: Sun Dec 25, 2011 06:50 PM
using the above function .... the following error occurred:



help!
FWHX 11.11 # xHarbour 1.2.1 Rev.9411 ## Borland C++ 5.8.2

Continue the discussion