中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 19:22
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Question about comparing 2000 system update patches, looking for a command
Printable Version  980 / 9
Floor1 woxizishen Posted 2010-04-06 19:09
新手上路 Posts 7 Credits 6
Under XP there is the REG QUERY registry query command, which makes compare-and-update easy.

Under 2000 there is only the regedit /e registry export command, no query

Right now I want to compare and update the patch files in the same folder, like Windows2000-KB899587-x86-CHT.EXE, against the registry, but I don't know who has a way to do it..
regedit /e 323.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix"

If it's in the registry then don't install it, if it's not then install it???????????????????????
Floor2 woxizishen Posted 2010-04-07 16:00
新手上路 Posts 7 Credits 6
Does nobody know?
Or does anyone know how to extract the KB823559 text from the registry



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB823559]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB824105]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB825119]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB826232]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828035]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828749]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB832353]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB841356]
"Installed"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB842773]
Floor3 woxizishen Posted 2010-04-08 11:23
新手上路 Posts 7 Credits 6
Does nobody know? Do all the experts like to stay hidden/////////////////?????????????????????????
Floor4 HAT Posted 2010-04-08 13:23
版主 Posts 5,017 Credits 9,023
Floor5 exzzz Posted 2010-04-08 14:26
初级用户 Posts 167 Credits 194
Right, just type reg /? at CMD and you'll know, it can query, add, and delete, all of that is possible
Floor6 woxizishen Posted 2010-04-08 16:08
新手上路 Posts 7 Credits 6
Originally posted by woxizishen at 2010-4-8 11:23:
Does nobody know? Do all the experts like to stay hidden/////////////////?????????????????????????




Thanks, moderator, but the 2000 system doesn't have the reg command............................ only regedit /e /s and so on





I want to ask whether it's possible to use a batch file to extract the kb824105 above
That way I can compare it more easily
Floor7 HAT Posted 2010-04-08 22:00
版主 Posts 5,017 Credits 9,023
On 2000, use VBS, BAT won't do.
Floor8 woxizishen Posted 2010-04-09 12:04
新手上路 Posts 7 Credits 6
Originally posted by HAT at 2010-4-8 22:00:
On 2000, use VBS, BAT won't do.


Moderator, can you give me a piece of vb code?

I'm not good with vb

regedit /e 323.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix"

It's just comparing the main keys of the system patches under hotfix
For example:




Compare them with the patches stored in my current directory

Windows2000-KB824105-x86-CHT.EXE

Windows2000-KB893756-x86-CHT.EXE
Floor9 HAT Posted 2010-04-10 01:25
版主 Posts 5,017 Credits 9,023
I know a little VBS, not VB.
Floor10 pdanniel66 Posted 2010-04-10 04:37
初级用户 Posts 64 Credits 68
OP, do you want VB code or VBS code?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023