Strips filename from complete path
Strips filename from complete path
Rate Strips filename from complete path
(1(1 Vote))
'**************************************************************************
'* Name : StripFileFromPath
'* Description : strips the file name from string
'* containing drive letter and path's
'* Input : Path, like "C:\WINNT\SYSTEM\TEXT.LOG"
'* Output : "TEXT.LOG"
'*-------------------------------------------------------------------------
'* Rev,Date,Who,What
'* A,18-01-2003,W.Veldhuis,Initial Version
'**************************************************************************
For i = Len(path) To 0 Step -1
If Mid(path, i, 1) <> "\" Then
StripFileFromPath = Mid(path, i, 1) + StripFileFromPath
Else
Exit For
End If
Next i
End Function
Strips filename from complete path Comments
No comments yet — be the first to post one!
Post a Comment