Go Back   IceInSpace > Equipment > Software and Computers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 05-02-2010, 02:30 PM
Kevnool's Avatar
Kevnool (Kev)
Fast Scope & Fast Engine

Kevnool is offline
 
Join Date: Nov 2006
Location: Broken Hill N.S.W
Posts: 3,305
Copying file names only.

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 ?

Anyone done this before?

Cheers Kev.
Reply With Quote
  #2  
Old 05-02-2010, 02:43 PM
Tandum's Avatar
Tandum (Robin)
Registered User

Tandum is offline
 
Join Date: Apr 2008
Location: Wynnum West, Brisbane.
Posts: 4,166
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?
Reply With Quote
  #3  
Old 05-02-2010, 03:11 PM
AlexN's Avatar
AlexN
Widefield wuss

AlexN is offline
 
Join Date: Mar 2008
Location: Caboolture, Australia
Posts: 6,994
^^ Sound advice.. Thats how I do it... Great way to catalog your movies/music.
Reply With Quote
  #4  
Old 05-02-2010, 03:57 PM
Kevnool's Avatar
Kevnool (Kev)
Fast Scope & Fast Engine

Kevnool is offline
 
Join Date: Nov 2006
Location: Broken Hill N.S.W
Posts: 3,305
Quote:
Originally Posted by Tandum View Post
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?
Hi Robin so i just type that in on the promt or is B the drive letter ?

Sorry i,m still lost.
Cheers Kev.
Reply With Quote
  #5  
Old 05-02-2010, 04:11 PM
supernova1965's Avatar
supernova1965 (Warren)
Buddhist Astronomer

supernova1965 is offline
 
Join Date: Aug 2009
Location: Phillip Island,VIC, Australia
Posts: 4,073
Quote:
Originally Posted by Kevnool View Post
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 ?

Anyone done this before?

Cheers Kev.
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
Reply With Quote
  #6  
Old 05-02-2010, 04:22 PM
erick's Avatar
erick (Eric)
Starcatcher

erick is offline
 
Join Date: Dec 2006
Location: Gerringong
Posts: 8,548
Quote:
Originally Posted by Kevnool View Post
Hi Robin so i just type that in on the promt or is B the drive letter ?

Sorry i,m still lost.
Cheers Kev.
"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.
Attached Thumbnails
Click for full-size image (CMD window.jpg)
17.8 KB16 views
Click for full-size image (Output.jpg)
49.9 KB19 views
Reply With Quote
  #7  
Old 05-02-2010, 04:53 PM
Kevnool's Avatar
Kevnool (Kev)
Fast Scope & Fast Engine

Kevnool is offline
 
Join Date: Nov 2006
Location: Broken Hill N.S.W
Posts: 3,305
Hey Eric now how do we change the drive to G drive from C.
Sorry for the questions.

Cheers Kev.
Reply With Quote
  #8  
Old 05-02-2010, 04:54 PM
Kevnool's Avatar
Kevnool (Kev)
Fast Scope & Fast Engine

Kevnool is offline
 
Join Date: Nov 2006
Location: Broken Hill N.S.W
Posts: 3,305
Quote:
Originally Posted by supernova1965 View Post
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
Sorry Warren way to many files for that way.
Cheers Kev.
Reply With Quote
  #9  
Old 05-02-2010, 05:02 PM
Barrykgerdes
Registered User

Barrykgerdes is offline
 
Join Date: Feb 2007
Location: Beaumont Hills NSW
Posts: 2,900
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
Reply With Quote
  #10  
Old 05-02-2010, 05:24 PM
Kevnool's Avatar
Kevnool (Kev)
Fast Scope & Fast Engine

Kevnool is offline
 
Join Date: Nov 2006
Location: Broken Hill N.S.W
Posts: 3,305
A big Thank you for all your input Baz/Eric/Warren/Alex/Robin.
Job is done ...i have a list.
Cheers Kev.
Reply With Quote
  #11  
Old 05-02-2010, 05:29 PM
Tandum's Avatar
Tandum (Robin)
Registered User

Tandum is offline
 
Join Date: Apr 2008
Location: Wynnum West, Brisbane.
Posts: 4,166
Sorry kev, /b is a switch that means leave out all the details and /on means order by name. dir /? shows the help file.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 09:49 PM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement