PowerTip: Get a Directory Listing of Multiple Folders

Doctor Scripto

Dr 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

 

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment