How do I export a list of file names from a Vista folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to get a list of the files that are in a folder. Eventually I want to
put the list into Excel. Any pointers? Thanks!
 
Simple way.
With the directory opened in a cmd window, type:
dir > dir.txt
and press enter.
This will create a text file named dir.txt which will contain a list of the files.
 
Open a Command Prompt window (cmd.exe)
Type:

"cd /d D:\MyFolder"

Press ENTER. Then type:

"dir /b >dirlist.csv"

The output file "dirlist.csv" is created in the folder that you're currently in. This file can be opened using Microsoft Excel. The path "D:\MyFolder" above is provided as an example.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


I want to get a list of the files that are in a folder. Eventually I want to
put the list into Excel. Any pointers? Thanks!
 
Hautblossom said:
I want to get a list of the files that are in a folder. Eventually I want to
put the list into Excel. Any pointers? Thanks!


From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR command
(type "dir /?") will work with this command, if you wish to modify the
output. You can then subsequently edit the resulting text file using
NotePad, WordPad, Word, etc.

Alternatively:

Directory Lister
http://www.krksoft.com/index.php


--

Bruce Chambers

Help us help you:



They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 
Running under Vista Home Premium with a dual core machine and 2GB RAM.

I installed PrintFolder v1.3 running the executable as Administrator. A
"PrintFolder" entry appears in Windows Explorer context menu, but every time
I use it up comes a message with a white X on a red disc followed, on the
same line, an error message and an [OK] button thus:

Failed to set data for "
[OK]

Any suggestions what this means and why this software that you recommended
works for you and not for me? (I have tried restarting my PC by the way.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top