Command Line Search?

Permabanned
Joined
19 Apr 2006
Posts
2,333
Location
West Yorkshire
I wanna do a search on a drive for all pst files and have it output the results to a txt file (or pref a csv).

Is there easy way of doing this?
 
doesnt seem to work:

File not found - *.pst

dont think you can use wildcards with the FIND command.

however:
Code:
dir i:\*.pst /s > c:\pstfiles.txt

:does work but the format is not quite how I need it.

I could do with the output being something like:

I:\folder1\outlook.pst 299,333,013 bytes
I:\folder1\archive.pst 29,333,013 bytes

in that sort of layout!
 
Back
Top Bottom