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?
How do I delete a file from FTP?
- Ariston (BR)
- Posts: 9
- Joined: Fri May 07, 2010 1:42 am
- Location: Macapá - Amapá - Brasil
- Contact:
How do I delete a file from FTP?
Ariston Santos (Macapá-Amapá-Brasil)
FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: How do I delete a file from FTP?
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
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
- Ariston (BR)
- Posts: 9
- Joined: Fri May 07, 2010 1:42 am
- Location: Macapá - Amapá - Brasil
- Contact:
Re: How do I delete a file from FTP?
Thank you, friend. I am gonna test it now.
Ariston Santos (Macapá-Amapá-Brasil)
FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
FWPPC, Fwh26, xHb, xDev, WorkShop, Php, MySQL.
Re: How do I delete a file from FTP?
using the above function .... the following error occurred:
help!
help!
FWHX 11.11 # xHarbour 1.2.1 Rev.9411 ## Borland C++ 5.8.2