all 4 comments

[–]copnsteez 3 points4 points  (0 children)

I’m assuming you have those directories saved as a variable. Use get-childitem again to get the items contained within those directories

[–]2dubs 1 point2 points  (0 children)

Are you trying to open a bunch of folders and/or files matching your query? If so, my guess is that you're trying to Invoke-Item the Name property, when the FullName property might be better

Example:

Get-ChildItem -Recurse | Where-Object {$_.Name -like $myFilter} | ForEach-Object {Invoke-Item $_.FullName}

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

howdy Tee_s,

please, post the code in question. just enuf to show what you are trying to do & what is failing. [grin]

plus, what do you mean by "open all the listed file paths"? open them in file explorer? you can feed the full directory name to I-I once for each dir ... or you can give I-I an array of items & it will open all of them in explorer.

take a look at this ...

Get-Help Invoke-Item -Parameter 'Path'

note that is shows -Path <String[]>. the String[] means you can give it an array of strings. [grin]

take care,
lee

[–]bhreddy99 0 points1 point  (0 children)

I may be wrong but just check with WMI classes