Get the folder names with full path

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Poshoholic Poshoholic 3 years, 11 months ago.

  • Author
    Posts
  • #7121
    Profile photo of sukanya Ramesh
    sukanya Ramesh
    Participant

    I want to store the folder names with full path  in a variable, when i use get-childitem -recurse

  • #7125
    Profile photo of Poshoholic
    Poshoholic
    Member

    Something like this then?

    $folderPaths = @(Get-ChildItem -Directory -Recurse | Select-Object -ExpandProperty FullName)

You must be logged in to reply to this topic.