|
Welcome, Guest. Please login or register. December 03, 2008, 05:56:28 PM Forgot your password? |
| Instantly Create A List Of All Files |
|
| Written by windowsxp550 | |
| Thursday, 02 February 2006 | |
|
Please Enter New Tags Separated By Comma's
Or Close This little trick is very useful, especially if you have a drive or folder with a lot of files, subfolders and subfiles. It allows you to quickly list all file names, including their location, size and the date the file was modified in a text file or spreadsheet.
Click
then
Type cmd then click
Since the drive or file can be anything (depending on what you want to list), I have listed a few examples Example 1:If you wanted all files located in the C:\Documents and Settings\John\My Documents\ Type the following (hit Enter after each line): cd c:\ dir "C:\Documents and Settings\John\My Documents\” /s > c:\List.txt
Example 2:If you wanted all files located in C:\ , you would type the following (hit Enter after each line): cd c:\ dir “c:\” /s > c:\List.txt
Note that the basic format is: dir ”location you want to search” /s > C:\AnyFileName.txt The underlined text is what will change depending on what you are wanting to list and the filename that you choose. The blue text is what will change depending on what you are wanting to list and the filename that you choose. Type Exit or click on the “X” to close the command prompt then navigate to where you created the text file. If you double click the file, notepad will open with a list of all of files and subfolders and subfiles
If you have Excel Installed, you can open this in excel by first launching excel, then click Open, then navigate to where you created the text file (make sure you change the files of type, to all files) then open the file and excel will start the import wizard, follow excel’s wizard instructions and viola you have your data in Excel! Comments (6)
![]() written by Reddog151, March 01, 2007
I must say very cool
written by CIGraphics, January 07, 2007
To exit from a cmd prompt in this case you have to press the Ctrl C buttons then type exit and press enter
written by Guest, March 19, 2006
This is simple redirection of old MS-DOS commands... Anyway, useful for those that even don't know what MS-DOS was...
written by Guest, March 03, 2006
Awesome.
written by Guest, February 13, 2006
:grin
written by XplongVista, February 04, 2006
Nice one I didn't know that :grin
Write comment
|