问题
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