|
| |||||||
| |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
| | #1 (permalink) |
| Registered User Join Date: Mar 2005
Posts: 618
| Need a search and destroy program Anyone know of a program that can search every XP machine in a windows 2003 domain for a specific type of file and then archive them to another machine on the domain? or even just delete them from the host? I started writing a vbs to do it via wmi, but it got to be too complex. Basically I need it to scan AD for all host names, make a list of them, go through each host's c drive (via \\hostname\c$\), search for the certain types of files, make a list or array of them, delete all the files in list or array, or move all files listed in array to another host (\\server\archive\%hostname%) and then move on to the next host.
__________________ I always say, you never know what a man is truly made of until you peel the skin off his face one piece at a time. |
| | |
| | #2 (permalink) |
| Registered User Join Date: Aug 2002 Location: Texas
Posts: 1,522
| Would this work as a batch file? (replace filename.txt with the file you want to delete and add lines as necessary). Test it first, i dunno if this would work, but it should I would think. I think that NET VIEW will show all computers on the network. Code:
Last edited by AladainAF : 04-28-2008 at 06:49 PM. |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |