I have this problem
There is a menu item that give the possibility to open a folder
I give also the possibility to rename the name of the Folder cMyFolder into cMyFolderNew in some other patrts of the program
Is not possible to rename a folder if the folder is open
before changing the name I always warn to close the folder
but in 90% of cases the folder is closed, so I would first
test if it is open and only in this case to alert.
How can I test that the folder is open?
if it were a file I could open it in exclusive mode
any hints
Marco
There is a menu item that give the possibility to open a folder
MENUITEM "Open Folder " + cMyFolder  ACTION SHELLEXECUTE( 0, 0, cMyFolder ,  0, 0, 1 )I give also the possibility to rename the name of the Folder cMyFolder into cMyFolderNew in some other patrts of the program
   frename( cMyFolder , cMyFolderNew )Is not possible to rename a folder if the folder is open
before changing the name I always warn to close the folder
but in 90% of cases the folder is closed, so I would first
test if it is open and only in this case to alert.
How can I test that the folder is open?
if it were a file I could open it in exclusive mode
any hints
Marco
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it