deleting files from app

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

deleting files from app

Post by plantenkennis »

Hello Antonio,

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

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: deleting files from app

Post by Antonio Linares »

René,

Please try it this way:

FErase( cPathName + "/" + cFileName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: deleting files from app

Post by plantenkennis »

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
Post Reply