Winbatch

Print

Boot file search script

As always the code presented here is for instructional purposes. These scripts will most likely need to be modified to run in your environment. Also as I believe firmly in "re-usable code" you may find pieces of your scripts incorporated into mine. If so and you would like credit use the "email me" link and let me know. I'll be happy to add your name. Likewise if you use my code in a public forum please give me credit.

NOTE: You can copy and paste the code below to a text file, just change the extension to ".wbt" so it will run in Winbatch.

About This Script:

We had a virus that had deleted boot system files from random computers across the network. The OS of these systems was running in memory so until they rebooted they didn't know about it. I threw together a script to go to each system and check for the missing files. If the files were missing we would copy them back so when the user rebooted, their system came up.