0

I am trying to get a picture/screencap of all my folders, subfolders, and files in a directtory to paste into a Word file. I can't quite figure out a way to do this in Win10.

I want it to be something like:

Base Folder
│
├── Floder A (folder)
│   │
│   ├── Subfolder A (subfolder)
│       │
│       ├── readme.txt (readme)
│       │
│       ├── documents.docs (document)
│
├── Folder B(folder)
│   │
│   ├── test-script.sql (scripts)

Obviously something like this but nicer. I am open to a free component somewhere that I can adjust (like you can do with flowcharts, etc.). Is there a way to do this in Windows as I have tried the left pane of the Windows Explorer file structure?

2

1 Answer 1

1

You can get a character-based folder/file tree to paste into a document using the following:

  1. Open Explorer to the top-level folder
  2. <Shift>+<Right-click> in the folder background and select OPen PowerShell window here
  3. Type or copy/paste the follwoing command:
    • tree /f | Out-String | Set-Clipboard
  4. Your file tree is now on the clipboard and can be pasted into any text document
1
  • whoa that's so much better than doing it manual
    – cdub
    Jul 19, 2022 at 7:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.