Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Filename

Filename

Scheduled Pinned Locked Moved Visual Basic
helpquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zaegra
    wrote on last edited by
    #1

    Hello, I have the following problem: I have a file path like this: "C:\Program Files\MyProgram\Myfile.ext" How can I remove the path and only keep the file name, in this case "Myfile"? (I don't want the ".ext" behind it) Can someone help me please? Thanks, :-D Zaegra

    L 1 Reply Last reply
    0
    • Z Zaegra

      Hello, I have the following problem: I have a file path like this: "C:\Program Files\MyProgram\Myfile.ext" How can I remove the path and only keep the file name, in this case "Myfile"? (I don't want the ".ext" behind it) Can someone help me please? Thanks, :-D Zaegra

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Read up on the Path class. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


      Z 1 Reply Last reply
      0
      • L Luc Pattyn

        Read up on the Path class. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


        Z Offline
        Z Offline
        Zaegra
        wrote on last edited by
        #3

        Thanks, I didn't know it was that simple :laugh: Nice work!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups