Hey Does anyone know how to get the Filename from The Open File Dialog i want just the name not the name and path.
How could i trim the C:\Whatever\whatever\ so i can get FileName.txt
Thanks
Sean
Printable View
Hey Does anyone know how to get the Filename from The Open File Dialog i want just the name not the name and path.
How could i trim the C:\Whatever\whatever\ so i can get FileName.txt
Thanks
Sean
System.IO.Path.GetFileName method returns the filename of a file path.
MsgBox(System.IO.Path.GetFileName( _
"C:\DynamicShell\bin\GraphicsFeatures.dll"))