24 May, 2010

WindowsXp Search Command Line

I've recently needed to search a suite of Windows Xp machines in search of files with particular extensions. Since I intended on piping the results to a text file for review Windows Explorer wouldn't suit my needs. The 'find' command wasn't the proper tool for the job either as it is used for finding text strings in files.

I found good-ole 'dir' was the man for the job.


c:\ dir c:\ *.exe /s


This command will recursively search from C: for files matching '*.exe'.

That'll do donkey, that'll do.

No comments: