Announcement

Collapse
No announcement yet.

Searching for multiple files in the Domain

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

  • Searching for multiple files in the Domain

    Hi,
    I'm trying to search for multiple files on all the machines in the Domain and after ready other topics I came up with the following tool.

    cmd.exe /x /c "dir \\%E%\c$\file1.exe \\%E%\c$\file2.exe \\%E%\c$\file3.exe >>c:\out.txt

    Any suggestions ?

  • #2
    Re: Searching for multiple files in the Domain

    It would probably need a batch file for this because you have to run each command on a separate line. You'll have to experiment with this, but I think it should look something like this:

    cmd.exe /x /c c:\find_files.bat

    find_files.bat would look like:

    dir \\%E%\c$\file1.exe >>c:\out.txt
    dir \\%E%\c$\file2.exe >>c:\out.txt
    dir \\%E%\c$\file3.exe >>c:\out.txt

    Comment


    • #3
      Re: Searching for multiple files in the Domain

      I created the bat file like you suggested and I’m getting the following


      "You were not connected because a duplicate name exists on the network. Go to Sys
      tem in Control Panel to change the computer name and try again."

      Comment


      • #4
        Re: Searching for multiple files in the Domain

        I don't understand that message. Can you send a screenshot of that to [email protected]?

        Comment

        Working...
        X