Posts

Showing posts with the label Windows Commands

Search with file extension in Windows

Search with file extension in Windows Enter that from whatever directory you want to start. FOR /R will do the rest for every single file extension (*.xls) that’s in the descendants of the launching directory. for  /r %d in (*.xls) do echo %d >> c:\temp\Output.txt TimeSaver....!!!!

List all the files from directory and sub directories

Execute the command in root directory dir /s/p/w/b /S Displays files in specified directory and all subdirectories. /P Pauses after each screenful of information. /W Uses wide list format. /B Uses bare format (no heading information or summary).

Recursively delete files not folder structure

del /s/q *.doc - Delete only .doc files and not folder structure del /s/q *.* - Delete all files and not folder structure /S Delete specified files from all subdirectories. /Q Quiet mode, do not ask if ok to delete on global wildcard.