Thursday, 15 September 2011

windows - Adding a new registry file through batch commands -



windows - Adding a new registry file through batch commands -

so i've been trying add together new registry key , it's been working fine, noting fact add-on not going harm computer it's me understand few concepts. problem that's been happening follows, when run batch file, it's displaying next message in cmd:

off reg add together hklm\software\hello - 24919 /v test /t reg_binary /d fe340ead

the "off" in bold little weird, i'm not sure happened appear , not add together key, said i'm using batch commands , writing batch file through initial batch file , code used:

@echo off set new=new2.bat echo @echo off reg add together hklm\software\hello - %random% /v test /t reg_binary /d fe340ead >>%new%

help appreciated please! , give thanks you!

ps: i've referred next question (adding random key registry through batch file) , , did same, worked 1 time don't know happened above show , not add together key.

@echo off set new=new2.bat ( echo @echo off echo ^>nul reg add together "hklm\software\hello - %random%" /v test /t reg_binary /d fe340ead ) > %new%

you need place @echo off , reg add in separate lines

windows batch-file cmd

No comments:

Post a Comment