Ask Experts Questions for FREE Help !
Ask

Save directory listing to .txt file

Asked Jun 23, 2006, 12:37 PM — 11 Answers
This is kind of part2 to a question long closed. I played with software to do this but did not like the registry changes it made. I'm using WinXP

I dug up an old email with "instructions" but cryptic ones to my pea-brain:

Me: "Can you remind me how to save a directory listing to file?"
Him: "Open a DOS window in the folder you want. Type dir > rick.txt"

What-the-how-the-heck?

How do I "open a dos window in the folder"?
Then how do I designate where I want the file to go?

I do have a print directory option when I right click on a folder, but I want to save it to file, not print it.

Thanks!

11 Answers
Curlyben's Avatar
Curlyben Posts: 18,069, Reputation: 8728
Admin & Wine Expert
 
#2

Jun 23, 2006, 12:40 PM
Here you go
  • Start
  • Run
  • Type cmd (gives you a 'DOS' window)
  • Navigate to the folder you want (c:\folder)
  • Type DIR > rick.txt
Job done
Helpful  (1)
RickJ's Avatar
RickJ Posts: 10,075, Reputation: 4374
Uber Member
 
#3

Jun 23, 2006, 12:48 PM
Now I'll really show my stupidity :

I forget how to navigate from there.

When I run cmd.exe it puts me with the curser flashing right after
C:\Documents and Settings\Rick>

The directory I want to save to file is
G:\My Music
Helpful
Curlyben's Avatar
Curlyben Posts: 18,069, Reputation: 8728
Admin & Wine Expert
 
#4

Jun 23, 2006, 12:52 PM
Ok try this

G:
Cdmy music

Helpful
ScottGem's Avatar
ScottGem Posts: 58,000, Reputation: 28105
Computer Expert and Renaissance Man
 
#5

Jun 23, 2006, 12:57 PM


Typing Help at the the command prompt will give you a list of commands. Typing Help command will give you the syntax for that command.
Helpful  (1)
RickJ's Avatar
RickJ Posts: 10,075, Reputation: 4374
Uber Member
 
#6

Jun 23, 2006, 12:57 PM
Cool!

Ok, now I'll get a bit picky. The formatting is ugly. Each file is one line preceeded with date, time and file size - followed by the file type.

Is there a way to get just a listing of the file names?
Helpful
Curlyben's Avatar
Curlyben Posts: 18,069, Reputation: 8728
Admin & Wine Expert
 
#7

Jun 23, 2006, 12:59 PM
Come on Rick.
Engage brain
You've got the txt file so throw it into excel and kill off the info you don't need
Helpful  (1)
RickJ's Avatar
RickJ Posts: 10,075, Reputation: 4374
Uber Member
 
#8

Jun 23, 2006, 01:01 PM
Well, as is the norm when I'm still at work at 4PM EST on a Friday: Out of Braincells.

[a red faced rick smacks self on forehead]
Helpful
ScottGem's Avatar
ScottGem Posts: 58,000, Reputation: 28105
Computer Expert and Renaissance Man
 
#9

Jun 23, 2006, 01:04 PM


There are actually ways, using the DIR command to trim the list, but bringing it in Word or Excel and making a table out if it is easier.
Helpful  (1)
Northwind_Dagas's Avatar
Northwind_Dagas Posts: 353, Reputation: 422
Full Member
 
#10

Jun 23, 2006, 01:27 PM
Quote:
Originally Posted by ScottGem
There are actually ways, using the DIR command to trim the list, but bringing it in Word or Excel and making a table out if it is easier.
Well, I'm not sure it's easier. For me, the fewest steps needed would be easier.

Dir /w > rick.txt

Would create your text file with just the names of files. Actaully, it would also include directories, so if you wanted exclude them:

Dir /w /a-d > rick.txt
Helpful  (1)

Not your question? Ask your question View similar questions

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Add your answer here.

Remove Text Formatting

Undo
Redo
 
Decrease Size
Increase Size
Bold
Italic
Underline
Align Left
Align Center
Align Right
Ordered List
Unordered List
Decrease Indent
Increase Indent
Insert Email Link
Wrap [QUOTE] tags around selected text
Wrap [CODE] tags around selected text
Wrap [HTML] tags around selected text
Wrap [PHP] tags around selected text
Wrap [YOUTUBE] tags around selected text
Notification Type:



Check out some similar questions!

How to save JPEG into smaller size of file... [ 1 Answers ]

I'm using Corel and Adobe... I want to know how to export my work into a smaller size of JPEG file... Cause I enccounter this when I'm to upload a photo in a site... But it asking me to upload only 110 x 110 pixels and 15k... So I edit my 2 x 2 photo (300 DPI) using photoshop I try to reduce the...

Finding and Listing Value in Cells [ 5 Answers ]

Question: In 10 cells in a row, two unspecified values will appear. In all other cells, there is a zero. For example: A B C D E F G H I J K 0 61 0 0 28 0 0 0 0 0 0 I have many rows, and the column in which they appear is randomized. In each row, one...

Listing a house [ 6 Answers ]

A friend of mine purchased a house in NY it was listed with a realestate broker as a 5 bedroom house. By the time the closing came time the house was renamed as a one bedroom house. The 4 bedrooms on the first floor were no longer considered bedrooms, because there were no closets in the rooms. Are...

XPHome: How to turn a directory listing into a text file. [ 8 Answers ]

I've got a folder of 4000 files. I'd like to convert the directory of them into a text file to show someone. How I do that? Thanks!


View more Other Computers questions Search