PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] - HDeleteFile()
[WD19] - HDeleteFile()
Iniciado por guest, 29,ene. 2015 20:38 - 3 respuestas
Publicado el 29,enero 2015 - 20:38
Hi
I try to delete some folders created in BDD folder (HDeleteDirectory(MyConnection,...)
Help say: Must be empty.
I try to delete, but error say . Lock is required.
I try to HLockFile() but file can not be locked or file can be deleted. Next error is
displayed about wrong lock and fist file and circle is closed for me.

What can I do in this situation ? Help needed.

Regards !
Publicado el 29,enero 2015 - 23:29
stop the hfcs server ???
Publicado el 30,enero 2015 - 14:31
Hi ICI,

Use HDeleteFile() to delete HFSQL files. Then use HDeleteDirectory().

I have no experience here, but if the files are used by the analysis, you might want to HClose() them or even HCloseAnalysis().

Best regards,
Alexandre Leclerc
Publicado el 04,febrero 2015 - 11:19
Hi Jan
If I stop server, then I loose all connections to server and application become unusable.
Whatever. It also don't work.

Hi Alexandre.
Yes. It says Help.
I try it all. HClose(), hChangeConnection(), hChangeDirectory(),...
For me, it is not possible to hDelete() file on HFSQL Server and off course hDeleteDirectory().

Thank you for your time and try.