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-13 12:29
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How can I modify the registry directly with a batch file? Thanks, everyone! View 964 Replies 3
Original Poster Posted 2007-04-21 12:30 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 210
Posts 79
Joined 2007-04-14 10:49
19-year member
UID 85130
Gender Male
From 湖北
Status Offline
How do I modify the registry in a batch file?
I looked at some posts and they all talk about using regedit to import *.reg or using txt. Is it possible to change it directly in the batch file???
Thanks!
I'm a total newbie!!!
Floor 2 Posted 2007-04-21 18:46 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Yes, refer to the reg command.
Floor 3 Posted 2007-04-22 00:49 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 210
Posts 79
Joined 2007-04-14 10:49
19-year member
UID 85130
Gender Male
From 湖北
Status Offline
I already looked at it
reg/?
but I still don't understand!
Can you explain it to me in more detail?
Floor 4 Posted 2007-04-22 04:51 ·  中国 安徽 蚌埠 电信
中级用户
★★
Credits 292
Posts 137
Joined 2007-04-03 01:59
19-year member
UID 83758
Gender Male
Status Offline
echo Windows Registry Editor Version 5.00 >reg.dll
echo
[HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\Liveup]>>reg.dll
echo "ctext"="Come and create your own personal edition of 360 Safe Guard">>reg.dll
regedit -s reg.dll
del reg.dll

Modify it yourself, just a random example
Forum Jump: