Create a filename list from a directory

  • Thread starter Thread starter sat
  • Start date Start date
S

sat

How can I capture the filenames listed in a Windows
Explorer folder in an Excel or a Word document?

Thank you
 
Open the command prompt (cmd.exe),
change the directory to a folder of your choice and type
DIR
select the text and copy it into Word or Excel.

Austin M. Horst
 
Hi, Sat.

Open a "DOS" window and use the Dir or Tree command to produce the list of
filenames onscreen. Combine this with the redirection arrow to send the
list to a text file instead, which can then be opened by other programs,
such as Notepad or Word.

For example:

dir > list.txt

where "list" is any filename you choose.

For a mini-Help file for Dir or Tree or any other DOS command, type the
command followed by /?, such as:

dir /?

Play with these commands until you are comfy with them, then create your
text document and use it as you wish.

There may be better ways, using the GUI, but old DOS hands like me seem to
always find ourselves using the old tricks. ;^}

RC
 
Back
Top