[SOLVED] Making a loop to save a folder's name into a string (with Get-ChildItem)

Hello,

I'm trying to make a loop to retrieve the name of each folder with "Get-ChildItem -Path $myPath" to store it in a variable as a string. I could then reuse this string in the rest of my script. I tried several times and unfortunately without success. Could you please help me make this loop?

Respectfully,
Devlotik

Parents Reply Children
No Data