I am looking for a command that i can run from my server
to search pc's on the network for specific files. We
have over 400 pc's so one at a time is very tedious.
thank you
If you built a file of computer names (like mycomputers.txt), you could
for /f "Tokens=*" %%c in (mycomputers.txt) do :search %%c
....
....
Exit /b 0
:search
for /f "Tokens=*" %%a in ('dir \\%1\*.* /s^|Findstr "the file") do (
whatever you want to do when it is found
)
I'm sure an even better way could be found if you specified exactly what you
were looking for and what you do when you find it.
Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com