Results 1 to 3 of 3

Thread: get filename only

  1. #1

    Thread Starter
    Addicted Member jewel's Avatar
    Join Date
    Jul 2003
    Location
    truly asia
    Posts
    153

    get filename only

    Hi, how can I get the filename only from a full file path?

    Thanks,
    Jewel
    xoxo

  2. #2

    Thread Starter
    Addicted Member jewel's Avatar
    Join Date
    Jul 2003
    Location
    truly asia
    Posts
    153

    Re: get filename only

    got it already..thanks anyway...
    VB Code:
    1. Dim fileinfo As New FileInfo(sFilename)
    2. sName = fileinfo.name
    xoxo

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: get filename only

    You might also want to familiarise yourself with the System.IO.Path class, which contains several methods for manipulating a file path.

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