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