REG ADD - Invalid syntax

心已入冬 提交于 2019-12-25 02:57:07

问题


I am trying to modify a value in the registry by using the following line of code in a batch file but I keep getting "ERROR: Invalid syntax" when I use double quotes around the parameters or "Invalid key name" when I use single quotes.

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\{7AA5E1AE-2408-4B92-9C56-8962CD9E926C}" /v "Category" /t REG_DWORD /d 00000001 /f 

Any help would be greatly appreciated.


回答1:


I found the issue. /v "Category" does not need the double quotes. Thanks everyone for your help.



来源:https://stackoverflow.com/questions/29303870/reg-add-invalid-syntax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!