Dear mentors
How can I implement this pseudo code in HMG
cDir:="C:\HMGSave"
If .NOT. exist cDir
Create Folder // this is already in HMG
Else
msgstop ("I found one called HMGSave already")
Endif
Its the exitance check that I can't find
Thank you
Makeing a new directory if one does not exist
Moderator: Rathinagiri
Re: Makeing a new directory if one does not exist
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
- SALINETAS24
- Posts: 667
- Joined: Tue Feb 27, 2018 3:06 am
- DBs Used: DBF
- Contact:
Re: Makeing a new directory if one does not exist
Code: Select all
Local cDirFoto:=GetCurrentFolder()+"\Fotos\" // -> Este será para guardar las fotos
//-> Si no existe el directorio de FOTOS lo creo
IF !HB_DirExists(cDirFoto)
MakeDir(cDirFoto)
ELSE
msgstop ("YA EXISTE")
ENDIF
Como dijo el gran pensador Hommer Simpson..., - En este mundo solo hay 3 tipos de personas, los que saben contar y los que no.