0% found this document useful (0 votes)
16 views2 pages

How To Create A Report Showing Folder Structure and Files in A Folder - Microsoft Community

Uploaded by

jonalynmagsino23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

How To Create A Report Showing Folder Structure and Files in A Folder - Microsoft Community

Uploaded by

jonalynmagsino23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

7/17/24, 7:33 AM How to create a report showing folder structure and files in a folder - Microsoft Community

Community

Windows 10 Top Contributors: Ramesh Srinivasan - neilpzz - Chien Sage - questions_ ✅ 

Ask a new question 


Search within Windows 

PS Paul SW Created on June 4, 2019 Question Info

How to create a report showing folder Last updated July 2, 2024

structure and files in a folder Views 18,747

Good morning, Applies to:


I have a requirement to produce a report (could be a PDF, Word doc or XLS) that shows all the
folders/sub-folders below a given folder in Windows Explorer, so we can see the folder structure Windows / Windows 10 /
and analyze it. We also need a second report with the same criteria but also listing out all the files Files, folders, and storage
inside each folder. There are thousands of files under each folder so it will be large report. I have
done something similar using the File System object model in VB before, but am wondering if
there is a simple off-the-shelf tool or command we can use instead. You’re invited to
Thanks! try Microsoft 365
Paul for free

 This thread is locked. You can vote as helpful, but you cannot reply or subscribe to Unlock now
this thread.

I have the same question (61) Report abuse

Answer

DaveM121 Replied on June 4, 2019


Independent Advisor
Report abuse

Hi Paul

Open File Explorer and navigate to that folder

In the address bar, just type cmd and hit Enter

That will open a Commend Prompt in that folder

Paste this into Command Prompt and hit Enter

dir /s/b > AAA.txt

Wait for that command to complete

That will have created a new text file in that folder - AAA.txt that will contain a listing
of all files in that folder, including all sub-folders, which you can copy/paste into Word,
Excel . . . etc.

If you just want to list files in a specific folder and not sub-folders, open a Command
Prompt in that folder and run this command:

dir /b > AAA.txt


___________________________________________________________________

Power to the Developer!

MSI GV72 - 17.3", i7-8750H (Hex Core), 32GB DDR4, 4GB GeForce GTX 1050 Ti, 256GB NVMe M2, 2TB HDD

73 people found this reply helpful · Was this reply helpful? Yes No

Replies (4) 

https://answers.microsoft.com/en-us/windows/forum/all/how-to-create-a-report-showing-folder-structure/1f6d55b8-b9de-43ce-b602-acb7f00e0521 1/2
7/17/24, 7:33 AM How to create a report showing folder structure and files in a folder - Microsoft Community

What's new Microsoft Store Education Business Developer & IT Company


Surface Pro Account profile Microsoft in education Microsoft Cloud Azure Careers

Surface Laptop Download Center Devices for education Microsoft Security Developer Center About Microsoft

Surface Laptop Studio 2 Microsoft Store support Microsoft Teams for Dynamics 365 Documentation Company news
Education
Surface Laptop Go 3 Returns Microsoft 365 Microsoft Learn Privacy at Microsoft
Microsoft 365 Education
Microsoft Copilot Order tracking Microsoft Power Platform Microsoft Tech Community Investors
How to buy for your school
AI in Windows Certified Refurbished Microsoft Teams Azure Marketplace Diversity and inclusion
Educator training and
Explore Microsoft products Microsoft Store Promise development Copilot for Microsoft 365 AppSource Accessibility

Windows 11 apps Flexible Payments Deals for students and Small Business Visual Studio Sustainability
parents

Azure for students

 English (United States) Your Privacy Choices Consumer Health Privacy

Sitemap Contact Microsoft Privacy Terms of Use Trademarks Safety & eco Recycling About our ads © Microsoft 2024

https://answers.microsoft.com/en-us/windows/forum/all/how-to-create-a-report-showing-folder-structure/1f6d55b8-b9de-43ce-b602-acb7f00e0521 2/2

You might also like