• list contents of a drive

    Home » Forums » AskWoody support » Windows » Windows – other » list contents of a drive

    Author
    Topic
    #379441

    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… crossfingers

    Viewing 0 reply threads
    Author
    Replies
    • #631908

      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:

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

      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.

      • #631914

        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?

        • #631919

          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:

          PATH=%PATH%;C:WINDOWSCOMMAND

          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.

          • #631936

            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

          • #631943

            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

            • #631948

              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.

            • #631974

              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!

            • #632127

              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 flee

          • #631937

            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

    Viewing 0 reply threads
    Reply To: list contents of a drive

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: