FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) deleting files from app
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
deleting files from app
Posted: Mon Oct 19, 2020 09:52 AM
Hello Antonio,

Next question: How can I delete a file from within my program? I have tried next commands without success:
    FERASE[/list:u]
      DELETEFILE[/list:u]
        MOVETOTRASH[/list:u]
Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: deleting files from app
Posted: Mon Oct 19, 2020 10:45 AM

René,

Please try it this way:

FErase( cPathName + "/" + cFileName )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: deleting files from app
Posted: Mon Oct 19, 2020 06:49 PM

Hello Antonio,

Yes, I include the path when deleting a file, but all function return .F. So they can't delete the file. I have complete read/write access to the files.

Kind regards,



René Koot

Continue the discussion