I have been working on a project for a client in which the configuration file is is to support a series of "folder names" to direct certain outputs.
I would like to support relative paths such as ...
.\data\smith << would be same as 'data\smith'
or
..\data\smith << would not be the same.
I was working with a number of WinAPI and intrinsic PB functions yesterday and could not find the magic combination which would convert these relative paths to fully-qualified absolute paths... eg
If currrent directory is "d:\RB835" then
.\data\smith ==> d:\RB835\data\smith
..\data\smith ==> D:\data\smith
Does anyone have any good ideas for converting these "dot" and "dot-dot" entries from the relative form to the absolute form?
I also want to support entry of absolute paths; but I think I can just identify these as those starting with either "x:\" [fully qualified] or just "\" [current drive assumed]
OOPS forgot....
The named path may or may not exist at the time it is checked... at which time I have to create it.
ShCreateDirectory() works great (handles any 'missing' subdirectories automatically) , but that requires a fully-qualified path, which is why I am trying to get the absolute path name.
Thanks
I would like to support relative paths such as ...
.\data\smith << would be same as 'data\smith'
or
..\data\smith << would not be the same.
I was working with a number of WinAPI and intrinsic PB functions yesterday and could not find the magic combination which would convert these relative paths to fully-qualified absolute paths... eg
If currrent directory is "d:\RB835" then
.\data\smith ==> d:\RB835\data\smith
..\data\smith ==> D:\data\smith
Does anyone have any good ideas for converting these "dot" and "dot-dot" entries from the relative form to the absolute form?
I also want to support entry of absolute paths; but I think I can just identify these as those starting with either "x:\" [fully qualified] or just "\" [current drive assumed]
OOPS forgot....
The named path may or may not exist at the time it is checked... at which time I have to create it.
ShCreateDirectory() works great (handles any 'missing' subdirectories automatically) , but that requires a fully-qualified path, which is why I am trying to get the absolute path name.
Thanks
Comment