How to set value in registry via batch file in Windows? -


i going set value windows registry. want set variable shit stupidms in registry, result wrong. following code.

set stupidms=shit echo %stupidms%   reg add "hkey_current_user\software\microsoft\windows\currentversion\run" /v "stupidms" /t reg_sz /d ^%stupidms^% 

i think problem ^%stupidms^%, quite have no idea how correct it.

reg add "hkey_current_user\software\microsoft\windows\currentversion\run" /v "stupidms" /t reg_sz /d "%stupidms%" 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -