Skip to content

Fix My XP

Increase font size  Decrease font size  Default font size 
You are here:    Home arrow Site Navigation arrow Windows XP Fixes arrow Windows XP Fixes arrow Instantly Create A List Of All Files

Login

Welcome, Guest. Please login or register.
July 06, 2008, 12:04:51 AM
Username: Password:
Login with username, password and session length

Forgot your password?
forumhelpmodule.jpg

Translate

 

Instantly Create A List Of All Files Print
Written by windowsxp550   
Thursday, 02 February 2006
Please Enter New Tags Separated By Comma's
  Or Close

cmd  List of Files  run commands  xp tweak 

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 backupreg_01.jpg

 

 

then backupreg_02.jpg

 

 

Type cmd then click backupreg_03.jpg Then Click ok

 

 

listoffiles_01.jpg

 

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

 

listoffiles_02.jpg

 

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

 

listoffiles_03.jpg

 

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

 

listoffiles_04.jpg

 

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)Add Comment
...
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
Old stuff
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... smilies/wink.gif
...
written by Guest, March 03, 2006
Awesome.
me too
written by Guest, February 13, 2006
:grin
All file List
written by XplongVista, February 04, 2006
Nice one I didn't know that :grin

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


busy