List of Files


  1. Posts : 710
    Windows 7 Pro
       #1

    List of Files


    In Windows XP and I believe it worked in Vista there was a command line prompt to create a txt file listing all the subfolders and files for a directory.

    DIR "I:\" /s > "C:\List.txt"
    This is the prompt I use in Win XP and it works and creates a txt file with a list on my C drive.


    I have tried this in Windows 7 and it does not work.

    Does anyone know how to tweak this prompt so that it works in Win 7?

    Thanks
      My Computer


  2. Posts : 797
    Windows 7 Ultimate (x64)
       #2

    The command that you mention works perfectly on my system.

    The possible problem for you could be the fact that you might not have permissions to write to C:\ - in my case I was testing your command on E:\ drive.
      My Computer


  3. Posts : 8,608
    Windows 7 Ultimate 32bit SP1
       #3

    File Lister.zip from bamajim.com

    1. Go HERE http://bamajim.com/Tools/FileLister.zip and download File Lister.
    Save it to your Desktop
    Rt Click ->> Extract all ->> And extract it to your Desktop
    Open the File Lister Folder.
    Note: Leave the FileLister.vbe file in the folder and run it from there.
    Rt Click FileLister.vbe ->>Select Open Then Open to confirm.
    As the program runs, it will appear that nothing is happening.
    When the program is finished it will produce a log for you C:\Files.txt
      My Computer


  4. Posts : 710
    Windows 7 Pro
    Thread Starter
       #4

    Thanks of the responses.

    The possible problem for you could be the fact that you might not have permissions to write to C:\
    That was the problem I guess. I changed where to create the List.txt file to D drive and it worked.

    FileLister I gave a try but as far as I could tell it only listed things for C drive.

    Thanks again
      My Computer


  5. Posts : 1,261
    Windows 7 Professional 32-bit SP1
       #5

    What you can also do is modify you command (I'm using your example) to:

    DIR I:\ /s | CLIP
    This will all you to use the command line like you always have, but it redirects the output to the Windows Clipboard from which you can paste it into just about any document.

    AND it eliminuates the need for you to install, learn, and use a third-party program...
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:30.
Find Us