View previous topic :: View next topic |
Author |
Message |
blackjack

Joined: 04 Jan 2006 Location: anyang
|
Posted: Mon Apr 23, 2007 10:59 pm Post subject: copying just the file name |
|
|
I have a large number of files (well over 500) in a few folders and i would like to copy the file names into a word or text document, how can you select a number of files and just copy their name? I only need their name.
I have tried google, cnet (found a couple but they didn't work very well).
Going one by one will take me days
Cheers |
|
Back to top |
|
 |
blackjack

Joined: 04 Jan 2006 Location: anyang
|
Posted: Mon Apr 23, 2007 11:03 pm Post subject: |
|
|
I should have said a free way  |
|
Back to top |
|
 |
IlIlNine
Joined: 15 Jun 2005 Location: Gunpo, Gyonggi, SoKo
|
Posted: Mon Apr 23, 2007 11:34 pm Post subject: |
|
|
You have to know the name (path) of the directory containing the files. What's the structure? Is it one root directory with many sub-directories or are they all random. To do it one directory at a time, try this:
Stert --> Run --> type in CMD (press enter)
cd "\<directoryname>" (press enter)
dir /b > filelist.txt (press enter)
Where <directoryname> is the full path of the directory (for example: cd "\Documents and Settings\My Documents\" )
When your're finished, the file "filelist.txt" will contain the list of all the files in the directory and you can open up that file in word.
I don't know what your level of proficiency is, so if you have any other questions, ask! |
|
Back to top |
|
 |
blackjack

Joined: 04 Jan 2006 Location: anyang
|
Posted: Tue Apr 24, 2007 1:59 am Post subject: |
|
|
Okay i think i kinda understand however (this sounds stupid) i don't have a foward slash key so i can't do this step
cd "\<directoryname>" i have a cheap english / korean keyboard
also if i can over come the no foward slash problem where would the txt file be saved. |
|
Back to top |
|
 |
jay-shi

Joined: 09 May 2004 Location: On tour
|
Posted: Tue Apr 24, 2007 5:44 am Post subject: |
|
|
blackjack wrote: |
Okay i think i kinda understand however (this sounds stupid) i don't have a foward slash key so i can't do this step
cd "\<directoryname>" i have a cheap english / korean keyboard
|
You can copy the forward slash from the path address in explorer (ctrl-c), or from anywhere for that matter, and then paste it (ctrl-v) into the command window. |
|
Back to top |
|
 |
IlIlNine
Joined: 15 Jun 2005 Location: Gunpo, Gyonggi, SoKo
|
Posted: Tue Apr 24, 2007 6:04 pm Post subject: |
|
|
Ah! Right ...
That's easy --
The forward slash \ is actually the key that looks like the symbol for Won (Korean currency) Should be above your enter key. |
|
Back to top |
|
 |
mnhnhyouh

Joined: 21 Nov 2006 Location: The Middle Kingdom
|
Posted: Tue Apr 24, 2007 6:20 pm Post subject: |
|
|
Is there some kind of -R recursive directory search for this, or is it default?
h |
|
Back to top |
|
 |
IlIlNine
Joined: 15 Jun 2005 Location: Gunpo, Gyonggi, SoKo
|
Posted: Tue Apr 24, 2007 9:03 pm Post subject: |
|
|
dir /s is recursive. dir /b outputs the 'bare' listing with just the filenames. dir /s /b > filelist.txt will do what the OP wanted for all subdirectories within the current directory. |
|
Back to top |
|
 |
blackjack

Joined: 04 Jan 2006 Location: anyang
|
Posted: Tue Apr 24, 2007 9:51 pm Post subject: |
|
|
Okay i tried cutting and pasting the back slash but it comes up as ^v and my won key comes up as #
shift numbers are (from 1 to backspace)
1 2 3 4 5 6 7 8 9 0 - = #
! " � $ % ^ & * ( ) _ + ~
if i am in us language the won does become a backslash but it will not allow me to change when the run window is on
will i have to change my unicode language setting?
and why can't they just make it so you can paste special---paste file names?
thanks for your help
Cheers |
|
Back to top |
|
 |
|