Select Folder / create folder in Template

Hello everybody.

I have this template which I created to keep the history of changed procedures through compilation process, I tried to select the target location as a folder using
#PROMPT(‘Folder Name’,SAVEDIALOG( …” but it selects files only not folders.


Now I am putting the folder name manually. Another difficulty that if I enter the path manually how the folder to be created if it does not exist (I tried #RUN but it did not work)

I am using Clarion 6.3


Create a DLL that can be called with the #RUNDLL and return in the variable you passed to the DLL the directory you select with the get DIALOG with the correct parameters to get a directory. The technique works with ant version of Clarion from C4 to C11.