top of page
John

Join two parts of a file or folder path

Updated: Apr 12

NOTE: this post and the code it contains is still valid, however, it has been superseded by the 'Working with files and folders in VBA' post here https://www.thevbahelp.com/post/working-with-files-and-folders-in-vba.


This procedure joins two parts of a file or folder path together adjusting for whether the parent part ends with a path separator (or not) and whether the child part starts with a path separator (or not). It's really just a small convenience function but it does mean that you don't have to worry about the presence or absence of the path separators in strings returned by the application or my other procedures in your code.


Example usage:



Limitations: Windows only



0 comments

Comments


bottom of page