Welcome to TalkGraphics.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2000
    Location
    Las Vegas, NV
    Posts
    819

    Default File names to Word doc

    Is there any way to copy all the file names in a directory and paste it into word so it is editable. I don't want to type them (some directories have over 100 files) and I really don't want to use a screen shot because I want to be able to format the list.

    I know this can be done in DOS, but it also brings in alot of file information I don't need.

    Any ideas would be appreciated.

    Mickie
    IP

  2. #2
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: File names to Word doc

    Hi Mickie,

    Have you used the dir /B command from a DOS prompt? It should give you only the filenames. Redirect the output to a file to be able to edit.

    I don't know of any way to get the filenames using the GUI.

    Did you know that in a DOS prompt window in Windows 2000 and XP you can select text in columns? After selecting right click on the title bar and select edit > copy. You can then paste the column(s) into any windows application.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	dir.gif 
Views:	188 
Size:	34.8 KB 
ID:	24496   Click image for larger version. 

Name:	dirB.gif 
Views:	194 
Size:	8.9 KB 
ID:	24498  

    Last edited by Soquili; 30 March 2006 at 09:27 PM.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update
    IP

  3. #3
    Join Date
    Dec 2005
    Location
    Greenfield, WI USA
    Posts
    3,444

    Default Re: File names to Word doc

    YES!!!! I use PrintFolder Pro 3.21. You can find it here:
    http://no-nonsense-software.com/
    -=Bob=-
    IP

  4. #4
    Join Date
    Aug 2000
    Location
    Las Vegas, NV
    Posts
    819

    Default Re: File names to Word doc

    Bill — Thank you, thank you! That /B is exactly what we needed! It's been a long time since we have played around in DOS. This is going to save alot of time.

    Bob — Thanks for your reply too. I prefer to stay away from loading another program on the PC, but I'll keep it in mind for any future needs.

    Mickie
    IP

  5. #5
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: File names to Word doc

    You are very welcome, Mickie. Glad to have been of some help.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update
    IP

  6. #6
    Join Date
    Aug 2000
    Location
    Felton, DE, USA
    Posts
    503

    Default Re: File names to Word doc

    Don't know if this would help, but try tree /f at the cmd prompt. It gives a "visual" directory that can be redirected to a file then opened in any program you want.
    Glenn
    IP

  7. #7
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: File names to Word doc

    Hi Glenn,

    Is the /f switch provided by some plugin? I can't find it on Windows 2000 or XP.

    This is what XP shows are the valid switches:
    C:\TEMP>dir /?
    Displays a list of files and subdirectories in a directory.
    DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
    [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
    [drive:][path][filename]
    Specifies drive, directory, and/or files to list.
    /A Displays files with specified attributes.
    attributes D Directories R Read-only files
    H Hidden files A Files ready for archiving
    S System files - Prefix meaning not
    /B Uses bare format (no heading information or summary).
    /C Display the thousand separator in file sizes. This is the
    default. Use /-C to disable display of separator.
    /D Same as wide but files are list sorted by column.
    /L Uses lowercase.
    /N New long list format where filenames are on the far right.
    /O List by files in sorted order.
    sortorder N By name (alphabetic) S By size (smallest first)
    E By extension (alphabetic) D By date/time (oldest first)
    G Group directories first - Prefix to reverse order
    /P Pauses after each screenful of information.
    /Q Display the owner of the file.
    /S Displays files in specified directory and all subdirectories.
    /T Controls which time field displayed or used for sorting
    timefield C Creation
    A Last Access
    W Last Written
    /W Uses wide list format.
    /X This displays the short names generated for non-8dot3 file
    names. The format is that of /N with the short name inserted
    before the long name. If no short name is present, blanks are
    displayed in its place.
    /4 Displays four-digit years
    Switches may be preset in the DIRCMD environment variable. Override
    preset switches by prefixing any switch with - (hyphen)--for example, /-W.
    C:\TEMP>
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update
    IP

  8. #8
    Join Date
    Nov 2005
    Location
    Derbyshire
    Posts
    32

    Default Re: File names to Word doc

    Quote Originally Posted by Mickie
    Is there any way to copy all the file names in a directory and paste it into word so it is editable. I don't want to type them (some directories have over 100 files) and I really don't want to use a screen shot because I want to be able to format the list.

    I know this can be done in DOS, but it also brings in alot of file information I don't need.

    Any ideas would be appreciated.

    Mickie
    Another way of skinning this rabbit:

    At a command prompt type: dir “C:\Program Files” > Text.txt

    The resulting text file will be found here: C:\Documents and Settings\User Name

    And will be in this format:

    Volume in drive C is Sigmation (1)
    Volume Serial Number is 601B-2575

    Directory of C:\Program Files

    28/03/2006 09:37 <DIR> .
    28/03/2006 09:37 <DIR> ..
    20/09/2005 15:39 <DIR> 123di_35
    19/09/2005 23:28 <DIR> ABBYY FineReader 7.0 Professional Edition
    25/01/2006 18:37 <DIR> Adobe
    20/09/2005 15:35 <DIR> Ahead
    17/09/2005 20:54 <DIR> Analog Devices
    18/09/2005 08:16 <DIR> ATI Technologies
    01/03/2006 12:33 <DIR> Belkin
    22/09/2005 08:27 <DIR> Canon
    Etc, etc.
    IP

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •