listing files
Results 1 to 13 of 13

Thread: listing files

  1. #1
    Join Date
    Sep 2003
    Location
    mass
    Posts
    134

    listing files

    i need a program that will look in a folder and transfer the name of very file in that folder, to a text file

    CAN ANYONE HELP?

    PSP, its like cheese you can listen to outside

  2. #2
    Nix's Avatar
    Nix is offline Aka: Nix*, NNiixx, Nix23
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    8,255
    Open notepad and type
    Code:
    dir c:\windows /b > c:\result.txt
    and then save as your choice of name.bat

    So it is a batch file that in this case will list the files that are located in C:\Windows into a text file called result.txt and save it in C:\
    Last edited by Nix; February 17th, 2004 at 11:34 PM.

  3. #3
    Nix's Avatar
    Nix is offline Aka: Nix*, NNiixx, Nix23
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    8,255
    One of the DOS Gurus on this board will probably tell you how to modify this batch file to accept parameters for the directory name to be searched and the location and name of the result file.

  4. #4
    Join Date
    Apr 2000
    Location
    Sheboygan, WI
    Posts
    53,391
    EDIT: Better yet here is what I used to do the below Found it again.


    dir /a /-p /o:gen >filelisting.txt in a .bat file and save it in the Windows folder.

    Now Open windows explorer, and chose Tools/folder options/File types tab/Folder/advanced/new to open a new Action box.
    In the new actionbos, type in the name you want to appear in the context menu.
    Browse to the .bat file and select it in box labeled "Application used to perform action". Click ok and when you right click a folder you will see the what ever you names it has benn added as one of the actions in the Edit field.
    Now when I use this on a folder, I see a quick flash , then when i open the folder and double click FileListing.txt, it opens and shows me what is in the folder.

    For some reason, which I do not know why, sometimes this does not work. Yep had that happen. But the now it does. Found it does not work on networkee drivers either.

  5. #5
    Join Date
    Jun 2001
    Location
    Albuquerque, NM USA
    Posts
    14,686
    I have the following .bat file (named "yourname.bat"--of course you can name it what you want) in my Send To folder.
    dir %1>C:\windows\desktop\yourname.txt

    cls

    Now if you right click on a folder, the drop down menu (in Win98 anyway) should offer "Send To>". Put your cursor on that and the Send To drop down menu should offer "yourname.bat" as one of the choices. Click on that and you will have created a file named yourname.txt on the Desktop with the contents of the folder.
    Jim
    WIN7 Ultimate SP1 64bit, IE 11, NTFS,
    cable, MS Security Essentials, Windows 7 firewall

  6. #6
    Nix's Avatar
    Nix is offline Aka: Nix*, NNiixx, Nix23
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    8,255
    Train, that's pretty cool, I've done it in NT (View > Options > File Types) but it flashes a screen and then creates the filelisting.txt but doesn't display it.

    Also it seems to create a list of the directory you're in an not the one you're right clicking on.

    ie If I'm in C: and right click on C:\WinNT it gives me a list of whats in C: ?

  7. #7
    Nix's Avatar
    Nix is offline Aka: Nix*, NNiixx, Nix23
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    8,255
    Hmm WelshJim, that seems like a good one too.

    It's a bit like the simple thing I do on every machine I work on, create a link to Notepad in the Send To folder so I can just right click on a file and send it to notepad handy for quickly opening a file for viewing it's contents.
    Last edited by Nix; February 18th, 2004 at 07:28 PM.

  8. #8
    Join Date
    Apr 2000
    Location
    Friern Barnet, London, England
    Posts
    46,565
    Karen's Directory Printer will do what you want as well (freeware):

    http://www.karenware.com/powertools/ptdirprn.asp
    Nick.

  9. #9
    Join Date
    Jun 2001
    Location
    Albuquerque, NM USA
    Posts
    14,686
    SuperSparks--No question Karen's Directory Printer is a much more powerful tool. Lots of variety in what will be printed.
    Printing with it can be put into Send To as well.
    Jim
    WIN7 Ultimate SP1 64bit, IE 11, NTFS,
    cable, MS Security Essentials, Windows 7 firewall

  10. #10
    Join Date
    Jan 2002
    Location
    Mentor, Ohio USA
    Posts
    779
    I've been using a great program called RJH Extensions . It will add some very practical items (fully customizeable) to your right click context menu.

    Hope this helps.........
    Attached Images Attached Images
    Please post back so others can benefit also........

    Later
    John Steven

    "The only stupid question is the one you don't ask"

  11. #11
    Join Date
    Apr 2000
    Location
    Sheboygan, WI
    Posts
    53,391
    Originally posted by Nix
    Train, that's pretty cool, I've done it in NT (View > Options > File Types) but it flashes a screen and then creates the filelisting.txt but doesn't display it.

    Also it seems to create a list of the directory you're in an not the one you're right clicking on.

    ie If I'm in C: and right click on C:\WinNT it gives me a list of whats in C: ?
    I find the filelist.txt in the folder I R-clicked and a flash is all I get too. But as I commented, I have one xp system it does not work with

    I like "Karen's Directory Printer " also, used the heck out of it in 98.

  12. #12
    Nix's Avatar
    Nix is offline Aka: Nix*, NNiixx, Nix23
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    8,255
    Originally posted by Train
    I find the filelist.txt in the folder I R-clicked and a flash is all I get too.
    Hmmm I must have done something wrong.

  13. #13
    Nix's Avatar
    Nix is offline Aka: Nix*, NNiixx, Nix23
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    8,255
    Ok worked it out.

    Firstly the line
    the list will be generated and displayed at the bottom of the open Notepad window as filelisting.txt
    should probably read
    the list will be generated and displayed at the bottom of the open Explorer window as filelisting.txt
    as this is what happens when you have the folders and files listed in detail mode.

    Secondly I was under the impression that if I was in C:\Windows and right clicked on C:\Windows\System it would list what is in C:\Windows\System. As it was listing what's in C:\Windows I thought I must have made an error. However close inpsection of the screen shot

    shows that the highlighted folder is called Sample Music, but the list of files shown in

    is in fact the same as those listed in the first screen shot so it actaully does list the files and folders in the current directory and not the one being right clicked on.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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