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.
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.