Message 1 of 4
Get folder name in path
Not applicable
09-14-2012
03:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I am currently using this code to get the folder name (fourth) containing the current drawing.
FolderName = Dir(ThisDrawing.path, vbDirectory)
What would I use if I wanted to get the foldername one level up (third)?
ex. C:\FIRST\SECOND\THIRD\FOURTH
Any help is greatly appreciated.
Shawn