Get the path from a full pathname+filename, with one simple 1 line function. no declarations etc.
Get the path from a full pathname+filename, with one simple 1 line function. no declarations etc.
Rate Get the path from a full pathname+filename, with one simple 1 line function. no declarations etc.
(1(1 Vote))
'fname is the name of the file e.g. letter.doc
'then fpath will have just 'c:\my documents\'
'this will only work in cases where u know the filename too ! like in the case 'of a commondialog box
dim fpath as string
fpath = Replace(yourpath, fname, "")
Get the path from a full pathname+filename, with one simple 1 line function. no declarations etc. Comments
No comments yet — be the first to post one!
Post a Comment