Windows 7 Forums


Windows 7: copy text not contents

02 Jan 2010  
nedjinski

Windows 7 64 bit Professional
30 posts
 
 
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  
oystercatcher

xp, win7
11 posts
 
 

open a cmd shell in the top dir

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

Windows 7 64 bit Professional
30 posts
 
 

thanks for the DOS help - win 7 popped open a notepad window - very cool.
My System SpecsSystem Spec
.


01 May 2011  
MourningStar

Win7 Home Premium 64-bit
317 posts
 
 

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  
logicearth

Windows 7 x64 (SP1)
5,253 posts
 
 

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  
MourningStar

Win7 Home Premium 64-bit
317 posts
 
 

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  
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
47,728 posts
Texas
 
 

My System SpecsSystem Spec
01 May 2011  
MourningStar

Win7 Home Premium 64-bit
317 posts
 
 

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  
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
47,728 posts
Texas
 
 

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

Win7 Home Premium 64-bit
317 posts
 
 

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 problems?



Thread Tools



Similar help and support threads for: copy text not contents
Thread Forum
Solved Can't Copy Text From pdf Document! General Discussion
Search text file contents for special character General Discussion
How do I copy the entire contents of boot drive? General Discussion
Help! Can't copy/paste contents of a Word file Microsoft Office


All times are GMT -5. The time now is 01:47 PM.



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