Jump to content

gohnick

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Singapore

Posts posted by gohnick

  1. For windows xp updates, you can probably get away with simply changing MSU to EXE and removing WUSA.

    @ECHO OFF 
    SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
    FOR /R "%~dp0" %%A IN (*-KB*.EXE) DO (
    CALL :SUB %%~nA
    ECHO= Installing KB!KB_NUM!
    >NUL PING -n 4 127.0.0.1
    "%%A" /quiet /norestart)
    ECHO= == Press any key to restart ==
    >NUL PAUSE
    SHUTDOWN.EXE /r /t 0
    GOTO :EOF

    :SUB
    SET "KB_NUM=%*"
    FOR /F "DELIMS=-" %%B IN ("%KB_NUM:*-KB=%") DO SET "KB_NUM=%%B"

    Dear sir,

    Is it possible to include a string to output the installed KB numbers into a text file within the directory? Pardon my newbie question as I am a newbie in scripting :(

×
×
  • Create New...