PowerTip: Get a Directory Listing of Multiple Folders

Doctor Scripto

Summary:  Learn how to get a directory listing of multiple folders.

Hey, Scripting Guy! Question How can I use Windows PowerShell to look at the contents of multiple folders at once?

Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet, and specify more than one folder for the path, for example:

Get-ChildItem –path c:\fso,c:\music



Discussion is closed.

Feedback usabilla icon