PDA

View Full Version here: : Copying file names only.


Kevnool
05-02-2010, 02:30 PM
Hi all i was wondering is there a way to copy the file names only (say My Video folder).

The problem is if you highlight them all and select copy then when you open up word it wont paste ...i,m thinking its trying to copy the whole files.

Or is there a program to sort this out :shrug: ?

Anyone done this before?

Cheers Kev.

Tandum
05-02-2010, 02:43 PM
If you run a command prompt you can do a dir /B /ON > filenames.txt and that will make a file called filenames.txt with a list of file names in it?

AlexN
05-02-2010, 03:11 PM
^^ Sound advice.. Thats how I do it... Great way to catalog your movies/music.

Kevnool
05-02-2010, 03:57 PM
Hi Robin so i just type that in on the promt or is B the drive letter ?

Sorry i,m still lost.
Cheers Kev.

supernova1965
05-02-2010, 04:11 PM
a quick way to do single file name copies is to right click on the file then click on rename then the file name is selected and you can copy it and paste it into your document:thumbsup:

erick
05-02-2010, 04:22 PM
"B" is a switch Kev. Anyway, see attached. With this command, the file filenames.txt ends up in the directory that you run the the dir command in.

Kevnool
05-02-2010, 04:53 PM
Hey Eric now how do we change the drive to G drive from C.
Sorry for the questions.

Cheers Kev.

Kevnool
05-02-2010, 04:54 PM
Sorry Warren way to many files for that way.
Cheers Kev.

Barrykgerdes
05-02-2010, 05:02 PM
The simplesest way is to use the DOS "dir" command and direct it ">" to a "mydirectory.txt" file

Goto your command prompt
Enter cd \ [return]
then G: [return]
then CD your folder [return]
the directory (folder) that holds the file list you want then type dir > Mydirectory.txt
This will give you a file with the directory in it.

You can then edit the file to read how you like.

Actually I would write a filter program in Qbasic to read the log file direct and re-assemble it to read in whatever form I would like assemble. It would take about 20 minutes to write the program and could do the job for a 1000 entries in a flash!


Baz

Kevnool
05-02-2010, 05:24 PM
A big Thank you for all your input Baz/Eric/Warren/Alex/Robin.
Job is done ...i have a list.
Cheers Kev.

Tandum
05-02-2010, 05:29 PM
Sorry kev, /b is a switch that means leave out all the details and /on means order by name. dir /? shows the help file.