I am trying to create a situation where I can build a data file structure, dependent upon a selected starting point. I am using a the following code to select the starting point for my structure.
! Get the root data location
!------------------------------
IF FILEDIALOG(‘Select the root location for the data files.’,GLO:AppData,‘’,(FILE:LongName+FILE:Directory+FILE:KeepDir))
DISPLAY()
END
My problem is that if I choose a Drive letter only, I get a following back slash ‘\’ which I accept is correct, and when I choose a folder, there is no following back slash. My code to build the structure I am seeking works just fine with a selected folder, but when it is built directly to a drive letter, I end up with a double backslash.
My struggle is with identifying that a selected location is a drive letter, and then removing the backslash before adding my structure?
