Easiest way is to use a FileInfo object, part of System.IO
Dim filePath As String = "c:\mydir\subdir\temp\myfile.txt"
Dim checkFileInfo As New System.IO.FileInfo(filePath)
Dim path as String = checkFileInfo.DirectoryName
Dim fileName as String = checkFileInfo.Name
"steve" <noemail.@try.com> wrote in message
news:_M**********************@wagner.videotron.net ...
How can someone extract the file name and file path from a complete path?
ex: c:\mydir\subdir\temp\myfile.txt
will give:
path = c:\mydir\subdir\temp
filename = myfile.txt
TIA