FS Input Format Examples

Log Parser

FS Input Format Examples

Ten Largest Files

Print the 10 largest files on the C: drive:
LogParser "SELECT TOP 10 Path, Name, Size FROM C:\*.* ORDER BY Size DESC" -i:FS

MD5 Hashes of System Files

Return the MD5 hash of system executable files:
LogParser "SELECT Path, HASHMD5_FILE(Path) FROM C:\Windows\System32\*.exe" -i:FS -recurse:0

Identical Files

Find out if there are identical copies of the same file on the C: drive:
LogParser "SELECT HASHMD5_FILE(Path) AS Hash, COUNT(*) AS NumberOfCopies FROM C:\*.* GROUP BY Hash HAVING NumberOfCopies > 1" -i:FS


© 2004 Microsoft Corporation. All rights reserved.