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

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -