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

02 Jan 2010   #1
nedjinski

Windows 7 64 bit Professional
 
 
copy text not contents

this should be an easy one but I can't figure it out.

using windows explorer for my example -

I have a folder that has lots of sub folders in it.

I want to copy the names (text only) of the sub folders to a document but not the contents (files) of the sub folders.

how do I do this? when I try to a copy it wants to copy name & contents.

any ideas?


My System SpecsSystem Spec
02 Jan 2010   #2
oystercatcher

xp, win7
 
 

open a cmd shell in the top dir

dir /d > filename.txt
My System SpecsSystem Spec
03 Jan 2010   #3
nedjinski

Windows 7 64 bit Professional
 
 

thanks for the DOS help - win 7 popped open a notepad window - very cool.
My System SpecsSystem Spec
01 May 2011   #4
MourningStar

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

Quote   Quote: Originally Posted by oystercatcher View Post
Quote   Quote: Originally Posted by nedjinski View Post
this should be an easy one but I can't figure it out.

using windows explorer for my example -

I have a folder that has lots of sub folders in it.

I want to copy the names (text only) of the sub folders to a document but not the contents (files) of the sub folders.

how do I do this? when I try to a copy it wants to copy name & contents.

any ideas?
open a cmd shell in the top dir

dir /d > filename.txt
THANK YOU!!!

I want to take this one level deeper and get the names of the directories under that top directory. Can someone help?

-thnx in advance
My System SpecsSystem Spec
01 May 2011   #5
logicearth

Windows 8.1 Pro (x64)
 
 

Quote   Quote: Originally Posted by MourningStar View Post

I want to take this one level deeper and get the names of the directories under that top directory. Can someone help?

-thnx in advance
use tree command?
My System SpecsSystem Spec
01 May 2011   #6
MourningStar

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

Quote   Quote: Originally Posted by logicearth View Post
Quote   Quote: Originally Posted by MourningStar View Post

I want to take this one level deeper and get the names of the directories under that top directory. Can someone help?

-thnx in advance
use tree command?
How? example please, I am born yesterday

thnx 4 reply
My System SpecsSystem Spec
01 May 2011   #7
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

My System SpecsSystem Spec
01 May 2011   #8
MourningStar

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

Quote   Quote: Originally Posted by Brink 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
My System SpecsSystem Spec
01 May 2011   #9
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome. What works for you is what is important.
My System SpecsSystem Spec
01 May 2011   #10
MourningStar

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

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by MourningStar View Post
Quote   Quote: Originally Posted by Brink 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?
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 19:04.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App