Fog Creek Software
Discussion Board

Copy & Paste of File Directory contents

Is there a freeware somewhere which allows
you to show you the contents of a directory
so you can easily copy & paste into MS excel
the list of files for a given directory...

Thursday, March 04, 2004

You could use the command prompt to display the directory contents and copy the same into an XL sheet. There are different parameters for the dir command, so you can display the contents the way you want it before you copy them.

Thursday, March 04, 2004

Use something like:

dir > test.csv

in a command prompt, then enter


and Excel will open the file for you.

Change test.csv to the filename you want. Also check out the options for the dir command (enter dir /? to see them all). For example, you might want to do

dir /s > test.csv

to get all the subdirectories too.

Steve Jones (UK)
Thursday, March 04, 2004

I have a little shell utility calles SAMenu installed:

It adds an option to your right-click shell menus that allows you to "Copy Path to Clipboard".  It works for individual or multiple files.  I use it every day at work to send file paths around to my co-workers or when needed while coding.  I have been using it for years and highly reccomend this free utility.

The Not-So-Philosopher
Thursday, March 04, 2004

Checkout the excellent and free RJHExtensions @

Like they say it call do that and more......

Code Monkey
Thursday, March 04, 2004

*  Recent Topics

*  Fog Creek Home