中国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 06:16
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Why does reg add say the syntax is invalid?
Printable Version  1,405 / 3
Floor1 gigue Posted 2010-06-13 13:51
新手上路 Posts 2 Credits 2
I want to change the REG_SZ value of ObjectName under:
【HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SD3000Service】 to LocalSystem1
I wrote the command as follows:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SD3000Service"/v ObjectName /t reg_sz /d LocalSystem1 /f

It always says “invalid syntax”
Where did I go wrong?
Floor2 chy505908440 Posted 2010-06-13 15:05
初级用户 Posts 74 Credits 120 From 河北
Yeah, it's a syntax issue.
Floor3 Hanyeguxing Posted 2010-06-13 17:02
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
There is no space separating your /v from what comes before it.
Floor4 gigue Posted 2010-06-17 10:54
新手上路 Posts 2 Credits 2
Many thanks, it's working now.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023