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. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Powershell question: How to print only the current folder name

Powershell question: How to print only the current folder name

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
windows-admintutorialquestion
4 Posts 3 Posters 0 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.
  • M Offline
    M Offline
    melwyn
    wrote on last edited by
    #1

    Hi, Sorry for asking a powershell question. This should be easy for an expert. Suppose I'm in the folder C:\Windows\System32 . I want to print out only "System32". I have found commands that give the entire path, but I want only the last bit Thanks, Mel

    S P 2 Replies Last reply
    0
    • M melwyn

      Hi, Sorry for asking a powershell question. This should be easy for an expert. Suppose I'm in the folder C:\Windows\System32 . I want to print out only "System32". I have found commands that give the entire path, but I want only the last bit Thanks, Mel

      S Offline
      S Offline
      Sauro Viti
      wrote on last edited by
      #2

      You have posted the same question on 4 different forums; please, don't do it! The best when asking something is to choose the forum that better matches your subject, and post a unique question explaining as better as possible what is your problem. Thank you!

      1 Reply Last reply
      0
      • M melwyn

        Hi, Sorry for asking a powershell question. This should be easy for an expert. Suppose I'm in the folder C:\Windows\System32 . I want to print out only "System32". I have found commands that give the entire path, but I want only the last bit Thanks, Mel

        P Offline
        P Offline
        Peter_in_2780
        wrote on last edited by
        #3

        You'd better put your fireproof overalls on right now. Posting the same question in multiple forums (where the question doesn't fit in any of them) is only going to get you flamed out of here.

        Software rusts. Simon Stephenson, ca 1994.

        M 1 Reply Last reply
        0
        • P Peter_in_2780

          You'd better put your fireproof overalls on right now. Posting the same question in multiple forums (where the question doesn't fit in any of them) is only going to get you flamed out of here.

          Software rusts. Simon Stephenson, ca 1994.

          M Offline
          M Offline
          melwyn
          wrote on last edited by
          #4

          I think it's time they started a Powershell forum :)

          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