If you have VB2005, check out the Path class.
Dim file As String = "C:\MyApp\Bin\MyApp.exe"
Path.GetDirectoryName(file) --C:\MyApp\Bin
Path.GetFileName(file) --MyApp.exe
Path.GetFileExtension(file) --.exe
Path.GetFileNameWithoutExtension(file) --MyApp
I would think if you do a GetDirectoryName on it, and it
returned the same value as was already in it, you could
assume it's a folder?
Robin S.
----------------------------------------
" Franky" <fr***********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Given the path to a file how can I tell if it is a folder or a
non-folder file?
Thanks