Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error check on silent install of windows update?

Status
Not open for further replies.

wlfpackr

IS-IT--Management
May 3, 2003
161
US
I've written a batch script to install a Windows patch on end-user's PC's. Everything works fine, however, I would like to know how to go about performing an error check to make sure the Patch was installed.

Currently, once the patch is applied a log file is created (in the beginning of the script it looks for the log file and if it sees it, exits the batch file). This works fine to keep the patch from being installed over and over, but what happens if there is an error applying the update? Currently, the batch program skips down and writes the log file anyway and the next time the batch file is run it thinks the patch has been applied.

I think the best way to do this is to check the file that Microsoft is updating to see if it is the newer version. If it is, then the batch file should stop, but I have no idea how to check Date Modified values in batch scripting??

=================
There are 10 kinds of people in this world, those that understand binary and those that do not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top