Ali’s Knowledge Base
Destination Cloud …

Ali’s Knowledge Base

How can I quickly check whether a folder contains a certain type of file?

May 21st, 2007 . by Ali

You can pass the test-path cmdlet a wildcard expression to see whether any matching file exists. For example, to see whether a folder has any MP3 files, you can use

test-path d:\temp\*.mp3

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading ... Loading ...

Leave a Reply

Name

Mail (never published)

Website