Listing Folder Contents

Discussion in 'Windows Desktop Systems' started by Nick M, Mar 22, 2003.

  1. Nick M

    Nick M Moderator

    Messages:
    3,961
    I've got a few folders, each holding about 15,000 files each. How might I generate a list of the folder's contents?



    - Thanks,

    Nick.
     
  2. yoyo

    yoyo _________________

    Messages:
    1,557
    You can use the DIR command. Open a command window, navigate to your folder and type DIR >index.txt (or any name you like) and press enter. This will generate a file index.txt inside the folder. Type DIR /? for other switches like sort order or files to show or exclude.
     
  3. Nick M

    Nick M Moderator

    Messages:
    3,961
    I'm horrid with the command prompt, how might I navigate to a folder? :huh:
     
  4. Hipster Doofus

    Hipster Doofus Good grief Charlie Brown

    Messages:
    5,920
    Location:
    Melbourne Australia
    Use the cd command.

    C:\cd windows get you here C:\Windows
     
  5. Hipster Doofus

    Hipster Doofus Good grief Charlie Brown

    Messages:
    5,920
    Location:
    Melbourne Australia
    Of course this will make it a lot easier>

    Opening a Command Prompt to a Particular Directory From Explorer

    If you want to open a command prompt to a directory that is selected in the Explorer:
    1. Start Regedit
    2. Go to HKEY_CLASSES_ROOT \ Directory \ shell
    3. Create a new key called Command
    4. Give it the value of the name you want to appear in the Explorer. Something like Open DOS Box
    5. Under this create a new key called command
    6. Give it a value of " cmd.exe cd %1 " (no quotes)
    7. Now when you are in the Explorer, right click on a folder, select Open DOS Box, and a command prompt will open to the selected directory.
     
  6. Nick M

    Nick M Moderator

    Messages:
    3,961
    Awesome. Thanks so much yoyo, Hipster, I got it nice and working :)