Results 1 to 2 of 2

Thread: Split / Trim

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Split / Trim

    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

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    System.IO.Path.GetFileName method returns the filename of a file path.

    MsgBox(System.IO.Path.GetFileName( _
    "C:\DynamicShell\bin\GraphicsFeatures.dll"))
    Iouri Boutchkine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width