Is there a way to copy the folder/file names that are on our shared network drive (preserved in their hierarchy) to a program like excel? I’ve used screen captures but that isn’t going to cut it. We are trying to change how our shared drive is organized and i have a need to print out a list of what files are in what folders. Even if we end up with a list of file names with the complete pathway that should work also. Any way of doing this? I’d appreciate ideas… Thanks…
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
list contents of a drive
Home » Forums » AskWoody support » Windows » Windows – other » list contents of a drive
- This topic has 9 replies, 4 voices, and was last updated 22 years, 5 months ago.
AuthorTopicWSJenn
AskWoody LoungerNovember 14, 2002 at 3:39 pm #379441Viewing 0 reply threadsAuthorReplies-
WSWyllyWylly
AskWoody LoungerNovember 14, 2002 at 3:50 pm #631908Here’s a quick and dirty way to get what you want.
Open a command prompt (In NT/2K/XP, Start – Run – CMD, in Win9x, Start – Run – Command).
Enter the following text, modifying the italics to match your requirements:
tree /f /a d:temp >tree.txt
This will dump a text file in the location you specify with the directory hierarchy and the files it contains. You can see what the /f and /a switches do by typing TREE /? at a command prompt.
There are also downloadable programs that will do what you want, but this is quick and simple, and can then be exported into Excel.
-
WSJenn
AskWoody LoungerNovember 14, 2002 at 4:04 pm #631914 -
WSWyllyWylly
AskWoody LoungerNovember 14, 2002 at 4:14 pm #631919Hmm, could be that the DOS utilities are not in the system path. This will be an approximation since I don’t know exactly where Windows is installed, but you can enter this statement first:
PATH=%PATH%;C:WINDOWSCOMMAND
This appends the directory containing the DOS commands to the system’s search path (which is checked every time you enter a word/command etc). You can type that in manually, or better yet add it to the AUTOEXEC.BAT file on you computer so that it takes effect every boot. Alternately, you could enter C:WINDOWSCOMMANDTREE xxxxxxxx so that Windows knows where to find it, but I always like to have the DOS commands available when I open a command prompt.
Give that a go-round and see if it helps.
-
WSJenn
AskWoody LoungerNovember 14, 2002 at 5:44 pm #631936 -
WSR2
AskWoody LoungerNovember 14, 2002 at 6:13 pm #631943It seems that Win95 (and perhaps even Win98) does NOT come with the tree command!! Check this out:
-
WSkaplinb
AskWoody LoungerNovember 14, 2002 at 6:44 pm #631948There is an easy way: download free Karen’s Directory Printer from Karen’s Power Tools.
With this utitlty, you can print or save as text file the names, and other information, of all folders and files on your computer or mapped network drives.Install Karen’s Directory Printer, map the network drive and enjoy.
-
WSR2
AskWoody LoungerNovember 15, 2002 at 12:59 am #631974 -
WSJenn
AskWoody Lounger
-
-
WSR2
AskWoody LoungerNovember 14, 2002 at 6:13 pm #631937Strange as it seems, my Win98SE box does not have a “tree” command either…
I gather is it supposed to be built into “command.com”? But for some reason, my computer does not recognize it???
____________________________________________Jenn, perhaps this free program will help you:
Directory Printer
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
2 hours, 46 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 hours, 9 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
7 hours, 59 minutes ago -
0patch
by
WSjcgc50
4 hours, 28 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 hour, 22 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
10 hours, 59 minutes ago -
Problem opening image attachments
by
RobertG
12 hours, 33 minutes ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 3 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
7 hours, 35 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 8 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 8 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 8 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 5 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 12 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 13 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
10 hours, 26 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
5 hours ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
11 hours, 7 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
12 hours, 19 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 4 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 8 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 17 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days, 1 hour ago -
April’s deluge of patches
by
Susan Bradley
4 hours, 52 minutes ago -
Windows 11 Windows Updater question
by
Tex265
5 hours, 13 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 9 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 14 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 20 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 6 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 19 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.