PowerTip: Use PowerShell to Show Hidden Files

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to display only hidden files.

Hey, Scripting Guy! Question How can I see hidden files by using Windows PowerShell 4.0?

Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet, and add the –Hidden and the –File switches:

Get-ChildItem -Hidden -File

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment