Get the folder names with full path

This topic contains 1 reply, has 1 voice, and was last updated by  Poshoholic 4 years, 3 months ago.

  • Author
    Posts
  • #7121

    sukanya Ramesh
    Participant

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

  • #7125

    Poshoholic
    Participant

    Something like this then?

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

You must be logged in to reply to this topic.