Bonjour tout le monde,
how to know if a directory exists or not in c:\
for a file it's :
If ! file ("c:\sample\demo.prg')
...
endif
here it's working but for a directory it is not working
if not directory ('c:\sample')
...
endif
here it is not working
than's for your help
huiyi_ch wrote: ↑Sat Jan 07, 2023 11:38 am
hb_DirExists(<cDir>) ➜ lExists
checks if <cDir> exists. Note: it won't work with wild-cards.
returns .T. if <cDir> exists, otherwise .F.
huiyi_ch wrote: ↑Sat Jan 07, 2023 11:38 am
hb_DirExists(<cDir>) ➜ lExists
checks if <cDir> exists. Note: it won't work with wild-cards.
returns .T. if <cDir> exists, otherwise .F.
can you make an example with c:\sample please
Merci beaucoup
huiyi_ch wrote: ↑Sat Jan 07, 2023 11:38 am
hb_DirExists(<cDir>) ➜ lExists
checks if <cDir> exists. Note: it won't work with wild-cards.
returns .T. if <cDir> exists, otherwise .F.
Hi Edward!
I can't compile this project because of missing lib files. What's going on?
EDIT:
I've compiled this project, but at runtime I get: Nie można kontynuować wykonywania kodu, ponieważ nie znaleziono obiektu (null).DLL Ponowne zainstalowanie programu może rozwiązać ten problem.
Have you replaced the curl libraries in HMG with the newer ones included in my example? The definitions you are writing about are in the file hbcurl.ch, did you include this file in prg?
edk wrote: ↑Thu Sep 22, 2022 12:03 pm
Important. The newest libraries for both libcurl and the Harbour fork of this library are required for the program to compile.
The libcurl.dll (version 7.85) and the rest of the .dll files should be placed in the same folder as the executing program. The libCurl fork for Harbour is located in the hmg.3.4.4 subfolder. You need to copy the contents of this folder to your location of hmg.3.4.4 (not tested on other versions) overwriting old files.
The new fork is necessary to be able to read the information headers sent from the IMAP server. Unfortunately, the native functions for reading these headers do not work in this fork, the solution is to process them in debug mode, which slows down the whole process, but well: Beggars can't be choosers