Announcement

Collapse
No announcement yet.

List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

    I need a list of files in the C:\Documents and Settings\All Users\My Documents for all of the workstations in my resourse domain.
    The users should not be putting files there.
    This is why I am monitoring this.


  • #2
    Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

    First, see if you can generate a list from the command line on your computer, by issuing a command like:

    dir \\server\c$\documents and settings\all users\my documents

    You might need to enclose all or part of the command in quotations, and play around with some settings on the "dir" command to format the output the way that you want to. If you get that to work right, then let us know and I'll be able to show you how to create a batch file to do this for all of your computers.
    Kevin Stanush
    SystemTools Software Inc.

    Comment


    • #3
      Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

      Hey K
      Thanks for replying

      Ohhhhh....
      I was able to get the dir "\\...." to work for me.
      So now I can create a bat file to run this multiple times for all of the work stations in the resource domain.
      I think I am getting the idea.

      So the next move is to create a bat file that will list all of the workstations with the dir command.

      Am I on the right track??

      Comment


      • #4
        Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

        Yes, you have the idea now. To create the batch file, in Hyena:

        - Display the computers that you want to inventory in Hyena's right window.
        - Select the ones that you want, or press Control-A to select them all
        - Select Tools->Generate macro
        - Enter in for the macro command string something like dir "\\%E%\<path>"
        - Enter in a file path and name to save the batch file to.
        - You can also save the "command" in case you need to reenter it later.

        Click OK and Hyena will make the batch file for you and substitute the %E% with the computer name. Hyena will NOT execute the batch file.
        Kevin Stanush
        SystemTools Software Inc.

        Comment


        • #5
          Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

          ALRIGHT!!!

          IT WORKS!!! YEEEEHHHAAAA!!!!

          Thanks K



          One more question

          Where can I find info on the %e% in the macro.
          How do you know how to use e and not another letter.

          [This message has been edited by gale4s (edited 06-05-2002).]

          Comment


          • #6
            Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

            Ahhhh! I think I spoke to soon.

            K. What is the next move after I have the bat file.
            I would like to put this into a form that I can read ez. Like a spread sheet.
            It has somthing to do with csv files.
            Right?
            Oh yeah. When I ran the bat file it kept saying access denied. As long as I login as a administrator that should fix that.
            Right?



            [This message has been edited by gale4s (edited 06-05-2002).]

            [This message has been edited by gale4s (edited 06-05-2002).]

            [This message has been edited by gale4s (edited 06-05-2002).]

            Comment


            • #7
              Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

              The output can be hard to parse, so if you just want filenames, use the /B switch on the dir command. I don't know how to get the server in the output however. To create one big file, you would have to append the output to a file, ie dir ... >> files.txt
              Kevin Stanush
              SystemTools Software Inc.

              Comment


              • #8
                Re: List files in the C:\Documents and Settings\All Users\My Documents for all workstatio

                Thanks For all your help K

                Will talk again.

                Comment

                Working...
                X