Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: usconservative

I don’t understand this. I have a folder, say it’s called STUFF. It has some documents and a few subfolders containing their own documents in it. I would like to print a list of the documents and subfolders along with a list of the subfolders’ documents in my STUFF folder. Where do I put this “C:\> DIR /s >directory.txt” to get a printable document?

For example, I want to print out a directory listing of a folder located inside MY DOCUMENTS, like this:

STUFF (folder inside MY DOCUMENTS)
MOM’S STUFF (subfolder of STUFF)
Deed to House (document inside MOM’S STUFF folder)
letter (document inside MOM’s STUFF folder)
BILL’S LETTERS (subfolder of STUFF folder)
Letter to Gas Co (document inside BILL’S LETTERS folder)
Document inside STUFF folder
Document inside STUFF folder
Document inside STUFF folder

How does one get a directory listing like this to print using “C:\> DIR /s >directory.txt”? Where do I type “C:\> DIR /s >directory.txt”?

BTW, I’m using Windows 7

Any help would be much appreciated. Believe me, I’ve googled this many many times and have NEVER found a way to print this. It should be a very simple process, don’t you think?


48 posted on 12/05/2017 8:10:52 AM PST by Auntie Mame (Fear not tomorrow. God is already there.)
[ Post Reply | Private Reply | To 37 | View Replies ]


To: Auntie Mame

Google: “print list of files in folder and subfolders windows 7”

There are several entries.


49 posted on 12/05/2017 10:58:14 AM PST by TomGuy
[ Post Reply | Private Reply | To 48 | View Replies ]

To: Auntie Mame
The posters are trying to get you to run a command from a command prompt.

The "C:\>" in "C:\> DIR /s >directory.txt" is not something you type, it is already shown in the command prompt. You type the DIR /s >directory.txt after you have changed the directory in the command prompt to your Documents directory.

Here's what a command prompt looks like:

Notice that it is opened to the directory "C:\Users\Mrhope"

Here's how to start a command prompt:

https://www.digitalcitizen.life/7-ways-launch-command-prompt-windows-7-windows-8

Typing the line below as a command and pressing Enter might or might not change your directory to your Documents directory. If it does not, I'm afraid you will have to hunt around until you find it. Anyway, enter this:

cd /d "%userprofile%\Documents"

If that command works, you should be inside your Documents directory.

Assuming that you are in the right folder, rather than "DIR /s >directory.txt" type this:

dir /b /s >dirlist1234.txt

That will create a list of full paths for files contained in the Documents directory and its subdirectories, in a new file named dirlist1234.txt. That file will be in your Documents directory. It should open with any word processor.

There are various ways for this to go wrong, and I no longer have any Windows 7 computers to test it. But it might work.

58 posted on 12/05/2017 8:56:16 PM PST by TChad
[ Post Reply | Private Reply | To 48 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson