PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD19] - HDeleteFile()
[WD19] - HDeleteFile()
Débuté par ICI, 29 jan. 2015 20:38 - 3 réponses
Posté le 29 janvier 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 !
Posté le 29 janvier 2015 - 23:29
stop the hfcs server ???
Posté le 30 janvier 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
Posté le 04 février 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.