Results 1 to 10 of 10
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, USA
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    list contents of a drive

    Is there a way to copy the folder/file names that are on our shared network drive (preserved in their hierarchy) to a program like excel? I've used screen captures but that isn't going to cut it. We are trying to change how our shared drive is organized and i have a need to print out a list of what files are in what folders. Even if we end up with a list of file names with the complete pathway that should work also. Any way of doing this? I'd appreciate ideas... Thanks... <img src=/S/crossfingers.gif border=0 alt=crossfingers width=17 height=16>

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    Here's a quick and dirty way to get what you want.

    Open a command prompt (In NT/2K/XP, Start - Run - CMD, in Win9x, Start - Run - Command).

    Enter the following text, modifying the italics to match your requirements:

    <big>tree /f /a d:temp >tree.txt</big>

    This will dump a text file in the location you specify with the directory hierarchy and the files it contains. You can see what the /f and /a switches do by typing TREE /? at a command prompt.

    There are also downloadable programs that will do what you want, but this is quick and simple, and can then be exported into Excel.
    -Mark

  3. #3
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, USA
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    Thanks Mark,
    I've tried several variations and changing the drive also but i only get bad command or file name. i'm using windows 95 the drive is u:shared, i would like to view all of the contents of u:shared. Right now I am at a u prompt U:> where to from here?

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    Hmm, could be that the DOS utilities are not in the system path. This will be an approximation since I don't know exactly where Windows is installed, but you can enter this statement first:

    <pre>PATH=%PATH%;C:WINDOWSCOMMAND</pre>

    This appends the directory containing the DOS commands to the system's search path (which is checked every time you enter a word/command etc). You can type that in manually, or better yet add it to the AUTOEXEC.BAT file on you computer so that it takes effect every boot. Alternately, you could enter C:WINDOWSCOMMANDTREE xxxxxxxx so that Windows knows where to find it, but I always like to have the DOS commands available when I open a command prompt.

    Give that a go-round and see if it helps.
    -Mark

  5. #5
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, USA
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    OK, I'VE TRIED THE FOLLOWING TO NO AVAIL: CAN YOU SEE WHAT I'M DOING WRONG?

    U:SHARED2001 LOBBY REPORTS> TREE/F/A U:SHARED>TREE.TXT
    C:>TREE/F/A/ U:SHARED>TREE.TXT

    ALSO TRIED IT FROM C/WINDOWS/DESKTOP

    Any clue what i'm missing? (the drive i am trying to list is the u:shared drive

  6. #6
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    It seems that Win95 (and perhaps even Win98) does NOT come with the tree command!! Check this out:

    How to Install Old MS-DOS Tools in Windows 95

  7. #7
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    Strange as it seems, my Win98SE box does not have a "tree" command either...

    I gather is it supposed to be built into "command.com"? But for some reason, my computer does not recognize it???
    ____________________________________________

    Jenn, perhaps this free program will help you:
    Directory Printer

  8. #8
    Silver Lounger
    Join Date
    Apr 2001
    Location
    New York, New York, USA
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: list contents of a drive

    There is an easy way: download free Karen's Directory Printer from Karen's Power Tools.
    With this utitlty, you can print or save as text file the names, and other information, of all folders and files on your computer or mapped network drives.

    Install Karen's Directory Printer, map the network drive and enjoy.

  9. #9
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    Gee, that sounds familar! (See my post above)

    I confirmed it -- the tree command was never included by default in Win95 or 98.
    ______

    ADD: I tried to import it from my Win2K box -- and it said I needed ulib.dll. So I got ulib.dll -- and it still did not work. So I gave up! [img]/forums/images/smilies/smile.gif[/img]

  10. #10
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, USA
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list contents of a drive

    Wahooo for "Karen" - her utility worked like a charm... helped me get a real sense of how bass ackwards our shared drive is... time to <img src=/S/flee.gif border=0 alt=flee width=25 height=25>

Posting Permissions

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