中国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 15:09
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » How to delete the value of a subkey in the registry with batch processing [Solved]
Printable Version  2,646 / 14
Floor1 eech Posted 2007-04-09 09:24
高级用户 Posts 346 Credits 906
Please provide the specific content from which you need to delete the blue part's value so that I can perform the translation as required. Currently, the information you've provided is incomplete.

Attachments
未命名.JPG (45.64 KiB)
Floor2 lxmxn Posted 2007-04-09 10:58
版主 Posts 4,938 Credits 11,386


Not tested...
Floor3 chainliq Posted 2007-04-09 12:39
高级用户 Posts 244 Credits 635 From 广西贵港
@echo off
reg delete HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\IMJPMIG8.1 /av
reg delete HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\PHIME2002A /av
reg delete HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\PHIME2002ASync /av

Tested
Floor4 lxmxn Posted 2007-04-09 14:59
版主 Posts 4,938 Credits 11,386
The one upstairs is not okay?
Floor5 everest79 Posted 2007-04-09 21:41
金牌会员 Posts 1,127 Credits 2,564
What system are you using?
Floor6 axi Posted 2007-04-09 21:55
中级用户 Posts 93 Credits 238 From GZ
To chainliq
Experts are indeed experts; they add a bit of humor even in teaching. At this time, the original poster might enter `reg delete /?` in the command line and then read it carefully.
Floor7 everest79 Posted 2007-04-09 21:59
金牌会员 Posts 1,127 Credits 2,564
I don't know if the thread starter has tried it, but I did, heh heh
Floor8 axi Posted 2007-04-10 01:16
中级用户 Posts 93 Credits 238 From GZ
Among many technical forums, the atmosphere here is the best. If you don't add the post to your favorites immediately, you won't know where it will sink to tomorrow. Enough talk. As far as I know, there are the following several methods to complete deleting the values under RUN in the registry:

1. Use the REG command (in the command line or in a batch file)
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IMJPMIG8.1 /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v PHIME2002A /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v PHIME2002ASync /f



2. Use the REG file import method (save the following content into Notepad, save as delrun.reg, double-click to import, or in the command line: regedit /s delrun.reg)
Windows Registry Editor Version 5.00


"IMJPMIG8.1"=-
"PHIME2002A"=-
"PHIME2002ASync"=-



3. Use a VBS file (save the following content into Notepad, save as delrun.vbs, double-click to execute)
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\IMJPMIG8.1"
WSHShell.RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\PHIME2002A"
WSHShell.RegDelete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\PHIME2002ASync"



4. Use a JS file (save the following content into Notepad, save as delrun.js, double-click to execute)
var WshShell = WScript.CreateObject ("WScript.Shell");
WshShell.RegDelete ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\IMJPMIG8.1");
WshShell.RegDelete ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\PHIME2002A");
WshShell.RegDelete ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\PHIME2002ASync");


(The above codes are absolutely successful. It's hard to say when those three values are not present)

[ Last edited by axi on 2007-4-12 at 12:09 AM ]
Floor9 lxmxn Posted 2007-04-10 01:42
版主 Posts 4,938 Credits 11,386

Not bad, I searched.
Floor10 eech Posted 2007-04-10 03:06
高级用户 Posts 346 Credits 906
Thanks to the above各位, adopted the solution of building 8, learned it,
Floor11 chp945 Posted 2007-04-12 07:08
新手上路 Posts 7 Credits 14
Floor12 gzlin10986 Posted 2007-07-01 12:09
新手上路 Posts 2 Credits 4
Originally posted by axi at 2007-4-10 01:16 AM:
Among many technical forums, the atmosphere here is the best. If you don't add the post to your favorites immediately, you won't know where it sinks to tomorrow. Enough chatter, as far as I know, there are the following several methods to complete the deletion...

Absolute master, salute!
Floor13 fyb198351 Posted 2007-07-01 13:12
初级用户 Posts 12 Credits 24
Learning
Floor14 6622186 Posted 2007-07-01 22:44
高级用户 Posts 411 Credits 894
.inf files are also okay
Floor15 cdmtys168 Posted 2009-10-17 17:59
新手上路 Posts 7 Credits 11
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023