May 25, 2013   Login   |   Register  
  Search  
  |  
  Tips & Tricks | Dump file and directory lists to text files

Dump file and directory lists to text files

Minimize

Need a complete list of files and directories from Windows? Don't feel like typing them manually? Here's the answer...

The following is a batch file that runs under command.exe or cmd.exe, depending upon whether you are using Windows 9x/Me or Windows NT/2000/XP/2003. Copy the file contents then save it in your SendTo directory as getDirListing.bat. In Windows NT/2000/XP/2003 the SendTo directory is in <DRIVE>:\Documents and Settings\<YOUR WINDOWS LOGIN>\SendTo.

@echo Directory and sub-directory file listing dump by RenegadeMinds.com.
@echo Visit
http://Renegademinds.com for more Windows tips and tricks
@echo and free software applications.
@echo ==================================================================
@echo ==================================================================
@echo Save this file as getDirList.bat in your SendTo directory.
@echo SendTo is under Documents and Settings in each user's directory.
@echo Right-click on any directory in Windows Explorer and choose
@echo Send To - getDirList.bat
@echo ==================================================================
@echo ==================================================================
@echo Dumping directory listing to c:\dirListing.txt
@echo        (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@del c:\dirListing.txt
@pause

Right-click on any directory and choose SendTo > getDirListing.bat.

Cheers,

Renegade

 

 

 Print   
     
Renegade Minds Basic Recording for Podcasts | Dump file and directory lists to text files  | Remove Programs From Startup | Easier, Faster Selections | Developers Corner  | Remote Computer Connections for Free

  Search

Copyright 2012 by Renegade Minds   |   Privacy Statement   |   Terms of Use
Renegade Minds