Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for winupd.bat

(view source code of winupd.bat as plain text)

  1. @ECHO OFF
  2. ECHO.
  3. ECHO WinUpd.bat,  Version 1.00 for Windows 9x / NT 4 / 2000
  4. ECHO Reenable Windows' Update feature.
  5. ECHO.
  6. ECHO Note:
  7. ECHO Use NOWINUPD.BAT if you want to disable Windows' Update feature.
  8. ECHO.
  9. ECHO Written by Rob van der Woude
  10. ECHO http://www.robvanderwoude.com
  11. ECHO.
  12. ECHO.
  13. ECHO Press any key to continue, or Ctrl+C to abort . . .
  14. PAUSE >NUL
  15. ECHO.
  16.  
  17. ECHO Creating temporary file . . .
  18. > "%Temp%.\NoWinUpd.reg" ECHO REGEDIT4
  19. >>"%Temp%.\NoWinUpd.reg" ECHO.
  20. >>"%Temp%.\NoWinUpd.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
  21. >>"%Temp%.\NoWinUpd.reg" ECHO "NoWindowsUpdate"=-
  22. >>"%Temp%.\NoWinUpd.reg" ECHO.
  23. >>"%Temp%.\NoWinUpd.reg" ECHO [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
  24. >>"%Temp%.\NoWinUpd.reg" ECHO "NoWindowsUpdate"=-
  25. >>"%Temp%.\NoWinUpd.reg" ECHO.
  26.  
  27. ECHO Writing changes . . .
  28. START /WAIT REGEDIT /S "%Temp%.\NoWinUpd.reg"
  29. IF EXIST "%Temp%.\NoWinUpd.reg" DEL "%Temp%.\NoWinUpd.reg"
  30. ECHO Done!
  31.  

page last modified: 2024-04-16; loaded in 0.0056 seconds