Hi Diego, I certainly can. But I am not 100% sure If i understand the question fully. It could be as simple by just adding a wildcard to your path, like this get-childitem "D:\folder*" -Recurse Or like this: $folder1 = "D:\folder1" $folder2 = "D:\folder2" $folder3 = "D:\folder3" get-childitem $folder1, $folder2, $folder3 -Recurse And another 1 with a depth of 2 for recursion $folder1 = "D:\folder1" $folder2 = "D:\folder2" $folder3 = "D:\folder3" get-item $folder1, $folder2, $folder3 | Get-ChildItem -Depth 2 I hope this helps, if you have any other question please let me know, I can create a video on it if needed.
Excellent lesson, thanks for that!
Your welcome
Can I ask you how to search directory with partial Name query and Get child item? Example temp1, temp2, temp3 directories names
Hi Diego, I certainly can. But I am not 100% sure If i understand the question fully. It could be as simple by just adding a wildcard to your path, like this
get-childitem "D:\folder*" -Recurse
Or like this:
$folder1 = "D:\folder1"
$folder2 = "D:\folder2"
$folder3 = "D:\folder3"
get-childitem $folder1, $folder2, $folder3 -Recurse
And another 1 with a depth of 2 for recursion
$folder1 = "D:\folder1"
$folder2 = "D:\folder2"
$folder3 = "D:\folder3"
get-item $folder1, $folder2, $folder3 | Get-ChildItem -Depth 2
I hope this helps, if you have any other question please let me know, I can create a video on it if needed.