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, 7 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
-
Need help with graphics… (Awaiting moderation)
by
WSBatBytes
14 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
11 hours, 10 minutes ago -
Totally remove or disable BitLocker
by
CWBillow
10 hours, 4 minutes ago -
Windows 10 gets 6 years of ESU?
by
n0ads
6 hours, 53 minutes ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
21 hours, 57 minutes ago -
Search Forums only bring up my posts?
by
Deo
22 hours, 10 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
1 day, 9 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
1 day, 2 hours ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
1 day, 10 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
1 day, 20 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
1 day, 21 hours ago -
Disengage Bitlocker
by
CWBillow
1 day, 11 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
1 day, 23 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
22 hours, 6 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
2 days, 6 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
2 days, 6 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
2 days, 10 hours ago -
New PC transfer program recommendations?
by
DaveBoston
15 hours, 36 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
2 days, 14 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
2 days, 14 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
2 days, 3 hours ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
1 day, 7 hours ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
1 day, 16 hours ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
3 days, 9 hours ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
2 days, 7 hours ago -
System Restore and Updates Paused
by
veteran
3 days, 12 hours ago -
Windows 10/11 clock app
by
Kathy Stevens
2 days, 23 hours ago -
Turn off right-click draw
by
Charles Billow
3 days, 15 hours ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
3 days, 19 hours ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
7 hours, 27 minutes 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.