Windows file contents to text file


  1. Posts : 2
    windows 7
       #1

    Windows file contents to text file


    i need a list of everything on my hard drive i can access in a text file without manually pounding the folder/sub folder and contents names into notepad is there anyway this can be achieved?
      My Computer


  2. Posts : 170
    Windows 7 Home Premium 64
       #2
      My Computer


  3. Posts : 761
    Windows 2000 5.0 Build 2195
       #3

    Assuming you have basic command prompt knowledge

    Open a command prompt, then navigate to the folder whose structure you want to save to a text file.
    Type:

    dir /s >somename.txt

    You'll then find the file on the directory you are at. The /s switch navigates ALL subfolders and files so saving it to txt might take some time.

    You could also use the Open Command Window Here feature to have that folder already selected in the command prompt.

    If you want EVERY single file/folder in your C:\ drive, then navigate to C:\ [cd /d C:\] and use the command from there.
      My Computer


  4. Posts : 2
    windows 7
    Thread Starter
       #4

    i have no idea how to use the command prompt is it too complicated to explain step by step?
      My Computer


  5. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #5

    To open a Command Prompt, Just goto Start -> Run and type cmd and press enter

    A black window will open. You can type the commands there.

    To get a list of files in a specific folder, you need to navigate to that folder
    Example, if you want the list of files in C:\My Folder\My Files, then type

    Code:
    C: <ENTER>
    CD \My Folder\My Files <ENTER>
    DIR /S *.* > C:\MyFileList.txt <ENTER>
    The file list will be saved in the file C:\MyFileList.txt
    Note: <ENTER> means you have to press the ENTER key.

    To get the list of all files in drive D:
    Code:
    D: <ENTER>
    CD \ <ENTER>
    DIR /S *.* > C:\MyFileList.txt <ENTER>
    Hope that helps
      My Computer


  6. Posts : 170
    Windows 7 Home Premium 64
       #6

    Another method:
    Code:
    Start > Accessories > Command Prompt
    One more:
    1. Open Explorer.
    2. Select the drive or folder you want.
    3. Hold down the Shift key and right click.
    4. Select "Open command window here".
      My Computer


  7. Posts : 16,129
    7 X64
       #7

    This freebie will save you a lot of hassle:

    Karen's Directory Printer


    willwin5 said:
    i need a list of everything on my hard drive i can access in a text file without manually pounding the folder/sub folder and contents names into notepad is there anyway this can be achieved?
      My Computers


 

  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 07:34.
Find Us