Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: copy text not contents

01 May 2011   #11
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by MourningStar View Post
Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by MourningStar View Post
Thnx Brink - that stuff looks too complex for me.

oystercatcher's solution is simple for a neophyte such as myself and does one level short of what I am wanting (the text file creation is perfect). Maybe an additional switch in the dir command or an alternate (tree?) dos command?

-thnx
You're welcome. What works for you is what is important.
thnx again - any other ideas?
Other than using the tutorial to add "View File Directory" to the context menu of folders to make it easier to do this for any folder, no.

It's not to bad to do if you follow OPTION TWO step by step to add it though.

Context Menu - Add View and Print File Directory - Vista Forums


My System SpecsSystem Spec
.
01 May 2011   #12
logicearth

Windows 10 Pro (x64)
 
 

open a command prompt, you know how to do that right?
then type "dir /?" proceed to read the help documentation.
My System SpecsSystem Spec
01 May 2011   #13
Jacee
Microsoft MVP

Windows 7 Ultimate 32bit SP1
 
 

WinDirStat will show you
  • The directory list, which resembles the tree view of the Windows Explorer but is sorted by file/subtree size,
  • The treemap, which shows the whole contents of the directory tree straight away,
  • The extension list, which serves as a legend and shows statistics about the file types.
WinDirStat - Windows Directory Statistics
My System SpecsSystem Spec
.

01 May 2011   #14
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by logicearth View Post
open a command prompt, you know how to do that right?
then type "dir /?" proceed to read the help documentation.
This led me to :

dir /b /s > filename.txt

although this command outputs every filename to the text file, I can live with it.

thnx!!!!!
My System SpecsSystem Spec
01 May 2011   #15
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

thought I would post an example of what I am after :

Music (current directory) with contents:
Music/Beatles
Music/Hendrix
Music/Van Halen

I want this ...

Music/Beatles/Hard Days Night
Music/Beatles/Rubber Soul
Music/Beatles/Sgt. Peppers
Music/Hendrix/Are you Experienced
Music/Hendrix/Band of Gypsys
Music/Hendrix/Electric Ladyland
Music/Van Halen/Van Halen I
Music/Van Halen/Van Halen II
Music/Van Halen/Women and Children First

-thnx
My System SpecsSystem Spec
02 May 2011   #16
debugged

Windows 7
 
 

Two ways that might interest you:

1. Tree command (expanding on logicearth's post):

In cmd prompt go to the drive where your Music folder is: type the drive letter, for instance, k: and press Enter.
Then go to the Music directory: type (for example): cd Media\Music and press Enter.
Now type: tree /a > folderlist.txt (you can name the .txt file anything you want)
This makes a text file in the Music directory.
If you want it to appear elsewhere, show its path as for example: tree /a > f:\Documents\folderlist.txt
You get a tree, not a list, but it has all the folders with various extraneous branch-like characters included!

2. dir command:

In cmd prompt go to your Music folder and type:

dir /b /s /a:d > folderlist.txt

You can strip away the drive letter and any parent directories from the list if you want:
In the .txt file type Ctrl+H, type in the "Find what" box, for instance, K:\Media\
Leave the other box empty and click on "Replace All"
My System SpecsSystem Spec
02 May 2011   #17
fafhrd

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
 
 

Not foolproof, but since most directories do not have file extensions, you can use *. (wildcard.<space>) to filter out files with extensions:

dir *. >folderlist.txt

There's a third party tool, Karen's directory printer which offers more flexibility:
http://www.karenware.com/powertools/ptdirprn.asp
My System SpecsSystem Spec
02 May 2011   #18
PooMan UK

Windows 7 Ultimate 64bit
 
 

Maybe a freeware 3rd party tool might make life easier

Directory printer
My System SpecsSystem Spec
02 May 2011   #19
gini

Windows 7 Home Premium SP1
 
 

FWIW, I've used KarenWare's Directory Printer for years, but I only recently tried it with Windows 7-64. I found I had to use the XP-SP3 compatibility mode, but now it works as always.
My System SpecsSystem Spec
02 May 2011   #20
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

thnx everyone - my intensions are to squeeze every ounce I can out of this o/s, thus avoiding 3rd parties whenever possible. cheers!
My System SpecsSystem Spec
Reply

 copy text not contents




Thread Tools




Similar help and support threads
Thread Forum
Can't Copy Text From pdf Document!
I have a pdf document that I downloaded from the internet. I just want to copy the text of a paragraph or two to cite as a quotation in another work--fair use and the source is duly noted. However I am unable to highlight any of the text in order to copy it to the clipboard. I have downloaded the...
General Discussion
Windows 'Text Document' arrange contents alphabetically ?
Hello, as the title suggests, or asks, is their a way of sorting the text, inside a Text Document, alphabetically? Many thanks in advance, Stuart
General Discussion
Simplest way to copy contents of one MSWord file on top of another
I use Unix and Cygwin and several scripting languages, so complex copying and scripting are easy for me, but I need to figure out a simple process for doing something in Windows without using scripting. This will be for me, but also for many other people who don't use Unix and Cygwin or scripting...
Microsoft Office
Search text file contents for special character
Hey, I'm trying to search the contents of some text files. The string I am searching for is SAP*. As you can probably guess when I type * I get everything that starts with the word SAP. I tried using ~"SAP*", ~SAP"(*)" etc. but it continues to show me everything that starts with SAP. I can't...
General Discussion
How do I copy the entire contents of boot drive?
I have been having issues with the booting of my c drive. I just installed a fresh copy of Win7 64 onto a fresh hard drive and it is booting. What I want to do is copy over the entire contents of my original C drive over to the new drive. I have a second computer to do this on and am not sure how...
General Discussion
Help! Can't copy/paste contents of a Word file
Help! I need to submit some work but the University requires that I copy/paste an ethics form to my word file. The problem is, when I open the ethics form, I try to highlight everything, nothing happens! Nothing is highlighted for some reason it's as if some kind of restriction has been placed...
Microsoft Office


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:35.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App