List All Files CMD

Discussion in 'other software & services' started by Franklin, Nov 3, 2008.

Thread Status:
Not open for further replies.
  1. Franklin

    Franklin Registered Member

    Joined:
    May 12, 2005
    Posts:
    2,517
    Location:
    West Aussie
    Found the below commands to list all such files within a directory.

    With Vista you can right click C drive or any dirctory and select command prompt.

    After running the "list all exes" cmd in C drive two weird exes showed up as being in the recyle bin when it was supposedly empty.

    Used my search utility "Agent Ransack" and sure enough those two exes showed up as being in the recycle bin which I was able to right click from within Agent Ransack's gui and delete.

    Running the commands will generate a "myfilelist.txt" on C drive which will be overwritten if creating a new list with a different extension so you could rename any generated lists if you want to keep them.
    Code:
    DIR /S /B /A:-D *.DLL > C:\myfileslist.txt
    
    DIR /S /B /A:-D *.exe > C:\myfileslist.txt
    
    DIR /S /B /A:-D *.txt > C:\myfileslist.txt
    
    DIR /S /B /A:-D *.(whatever) > C:\myfileslist.txt
     
Loading...
Thread Status:
Not open for further replies.