Re: Install patches through vbscript
- From: "Joe Fawcett" <joefawcett@xxxxxxxxxxxxxxxx>
- Date: Sun, 27 Apr 2008 10:02:27 +0100
"Miztiik" <Miztiik@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:301B4170-25A7-438C-BD18-8C7F82CBFA9E@xxxxxxxxxxxxxxxx
I want to install the patches in folder "PatchRepository" through a vbscript.Which part are you struggling with? There are a number of stages:
I would also like to get the error message of any patch which couldn't not be
installed for any reason [ Not applicable or Base patch not installed or
Incompatible Os Version etc.]
If the exit code of the script is zero [assuming there are no errors in
installation.] the same should be dumped onto a file. If any error, they
should also be listed on the file along with the patch name that failed.
Thank in advance for your help
Loop through the folders files using FileSystemObject to get Folder and its Files collection.
Open a text file using FileSystemObject and TextStream.
Run each patch using WScript.Shell's Run method. (Maybe use Exec method if you need to trap console output.)
Trap any errors and write to TextStream, also write Run method's return value.
Close TextStream.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
.
- References:
- Install patches through vbscript
- From: Miztiik
- Install patches through vbscript
- Prev by Date: Install patches through vbscript
- Next by Date: Script that checks date and time ...
- Previous by thread: Install patches through vbscript
- Next by thread: Script that checks date and time ...
- Index(es):
Relevant Pages
|
|