Saving Folder Contents as Text

  • Thread starter Thread starter JamesJ
  • Start date Start date
J

JamesJ

How does one save the contents of a folder (files names and folder names) as
text that I can paste into a text file. I don't want it in rich text.

Thanks,
James
 
You could open the folder so all file names are showing that you'd like to
take a picture of;
go to Start/Programs/Accessories/Snipping Tool. Choose New dropdown arrow,
choose Window Snip. This creates a window printscreen (like XP would do with
the Prt Sc button).
Then can save that snipped window as image file.
This isn't a rich text format but it is an image file, if that works for
you........katy
 
I need to list the contents of a folder to a text file without having to
type every file name.

James
 
I wonder if Command Prompt would help you here
(Start/Programs/Accessories/Command Prompt) I don't know how to change the
prompt to the folder needed but maybe there is a way in
Start/Programs/Accessories/Command Prompt to change directory to the folder
you want to copy the names of the files in, then 'edit' to select the files
in that folder. Then 'copy'. Then go to Start/Programs/Accessories/Notepad
and 'paste' into Notepad.
I cannot seem to get the command right to get to say my Documents folders to
try it but maybe you or someone else knows.
At least in Command Prompt, the file name would be in text format. I'm just
not sure if it would show the whole file name since it's in DOS format.
katy
 
James

Open Windows Explorer and locate the folder that you want a to save a list
of files. Hold down the SHIFT key, right click the folder, and select the
Command Prompt item.

In the command prompt, type the following command.

dir > filename.txt

Press ENTER.

(Make sure the command includes the spaces)

This will create and place a text file in that folder called filename.txt
with a list of all the files in the folder.
 
Perhaps I have missed the point, but would good old dir work?
If so you could output to a textfile with the pipe symbol, >

Start Orb | cmd
cd yourdirectory

Dir > James.txt

Optionally follow up with
type James.txt

Guy
 
Ever try to navigate to a folder from a command prompt in Vista?
The folder is buried so deep.

James
 
I do not see a selection for Command Prompt when holding down the
SHIFT key and right clicking the folder.

James
 
I was able to use the command prompt and get the listing
for the folder. Although it took me a while to navigate there.
No spell check in cmd.

Thanks to all for the help
James
 
It's actually very easy, even when you need to get to a folder that is many
levels deep.

Open Windows Explorer and navigate to the folder you need to use. Select the
folder and then click an empty spot in the address bar. This will reveal the
path to the target folder. Select the part of the path you want to use in
the command prompt and right click Copy.

Open the command prompt and type cd\ and then right click Paste the
path to the folder. Press enter and you are there. :)
 
Never thought of that. Great.

James

Ronnie Vernon MVP said:
It's actually very easy, even when you need to get to a folder that is
many levels deep.

Open Windows Explorer and navigate to the folder you need to use. Select
the folder and then click an empty spot in the address bar. This will
reveal the path to the target folder. Select the part of the path you want
to use in the command prompt and right click Copy.

Open the command prompt and type cd\ and then right click Paste
the path to the folder. Press enter and you are there. :)

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User
 
Back
Top