Let's presume I've got a path as follows :
"C:\TestProjects\FilesnStuff\Test1\File0.doc"
I want to get :
"C:\TestProjects\FilesnStuff\Test1"
only, so I don't want the file name.
I tried this :
But, I got the filename?Code:NewFName = Mid(FName, InStrRev(FName, "\") + 1) & "\Output" If Not FoldCreated Then MkDir NewFName FoldCreated = True End If
How can I change this to get the path only??




Reply With Quote