modify registry

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

nomad

Thread Starter
Joined
Sep 30, 1999
Messages
422
I have modified my registry to run a batch file from the drop down context menu when you right click on any blank area. What I would like to do know is distribute this to my coworkers in the form of a batch file or a .reg file so all the have to do is double click and it would modify their registry by adding a key called testing then a subkey under that called command then data value to be “D:\Users\%username%\Desktop\BatchFiles\test.bat” The following is what I have so far but keep getting the error “The specified file is not a registry script. You can only import binary registry files from with the registry editor.”

reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\testing" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\testing\command" /f /d “D:\Users\%username%\Desktop\BatchFiles\test.bat”

Can anyone help me with this?
 

kanaitpro

Account Closed
Joined
Feb 13, 2013
Messages
493
i think you need to take the quotes away from everything except the value to be added. the one i have here is like that anyway. here it is, and the flags don't match yours, but i am not a scripting guy, i would google it myself.

reg add HKLM\Software\Wow6432Node\JavaSoft\Java Update\Policy /v "EnableAutoUpdateCheck" /t REG_SZ /d dword:00000000 /f
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top