China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 14:19
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to delete the value of a subkey in the registry with batch processing [Solved] View 2,644 Replies 14
Original Poster Posted 2007-04-09 09:24 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
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
Floor 2 Posted 2007-04-09 10:58 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline


@echo off
set "a=reg delete HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN"
%a% /v IMJPMIG8.1 /F
%a% /v PHIME2002A /F
%a% /v PHIME2002ASync /F

Not tested...
Floor 3 Posted 2007-04-09 12:39 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
@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
学无尽止
Floor 4 Posted 2007-04-09 14:59 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
The one upstairs is not okay?
Floor 5 Posted 2007-04-09 21:41 ·  中国 广东 广州 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
What system are you using?
Floor 6 Posted 2007-04-09 21:55 ·  中国 广东 广州 番禺区 电信
中级用户
★★
脚本爱好者
Credits 238
Posts 93
Joined 2007-03-11 13:38
19-year member
UID 81417
Gender Male
From GZ
Status Offline
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.
Floor 7 Posted 2007-04-09 21:59 ·  中国 广东 广州 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
I don't know if the thread starter has tried it, but I did, heh heh
Floor 8 Posted 2007-04-10 01:16 ·  中国 广东 广州 番禺区 电信
中级用户
★★
脚本爱好者
Credits 238
Posts 93
Joined 2007-03-11 13:38
19-year member
UID 81417
Gender Male
From GZ
Status Offline
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 ]
Recent Ratings for This Post ( 4 in total) Click for details
RaterScoreTime
lxmxn +10 2007-04-10 01:42
vkill +2 2007-04-10 01:45
flyinspace +4 2007-04-10 01:49
cdmtys168 +1 2009-10-17 18:01
Floor 9 Posted 2007-04-10 01:42 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

Not bad, I searched.
Floor 10 Posted 2007-04-10 03:06 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
Thanks to the above各位, adopted the solution of building 8, learned it,
Floor 11 Posted 2007-04-12 07:08 ·  中国 贵州 贵阳 电信
新手上路
Credits 14
Posts 7
Joined 2007-04-09 03:52
19-year member
UID 84442
Gender Male
Status Offline
Floor 12 Posted 2007-07-01 12:09 ·  中国 广东 茂名 电信
新手上路
Credits 4
Posts 2
Joined 2006-10-23 02:54
19-year member
UID 67800
Gender Male
Status Offline
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!
Floor 13 Posted 2007-07-01 13:12 ·  中国 上海 松江区 电信
初级用户
Credits 24
Posts 12
Joined 2007-04-13 21:05
19-year member
UID 85038
Gender Male
Status Offline
Learning
Floor 14 Posted 2007-07-01 22:44 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
.inf files are also okay
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Floor 15 Posted 2009-10-17 17:59 ·  中国 广东 阳江 电信
新手上路
Credits 11
Posts 7
Joined 2008-11-14 03:27
17-year member
UID 130906
Gender Male
Status Offline
Forum Jump: