PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Delete files in HFSQL
Delete files in HFSQL
Iniciado por guest, 19,ago. 2015 19:09 - 6 respuestas
Publicado el 19,agosto 2015 - 19:09
Hi,

I need to delete files created in HFSQL, how do I remove them from code ?
these are some temp files created during run time.

Regards,

Peter Zhou
Publicado el 19,agosto 2015 - 22:59
HDeleteFile

DW
Publicado el 25,agosto 2015 - 17:48
Hi,

HDeletFile remove 1 file at a time..

How about removing many files from the temp folder ( would not know the actual file name beforehand) in HFSQL ?

Regards,

PETER ZHOU
Publicado el 26,agosto 2015 - 15:05
Hi,

Anyone knows the solution ?

It seems PCSOFT has not given us the ability to list files & directory with HFSQL.

Regards,

PETER ZHOU
Publicado el 26,agosto 2015 - 15:32
Hi Peter,

what about creating some stored procedures doing the job?
Call these from your software as if it where build-in Windev functions.
Like:
stored_proc.ListFiles()
stored_proc.DeleteFiles()
etc
Publicado el 26,agosto 2015 - 18:19
Doesn't matter if they're text files, HFSQL files, Word documents... they are all just files so you can just use fDelete can't you?
However, for HFSQL, just make sure your app hasn't got them open and that you delete the set of files, i.e. the data file, index file etc...
Publicado el 27,agosto 2015 - 10:17
Hi Arie,

I will try out the your suggestion on the stored procedure.

Thank you !

Regards,

PETER ZHOU