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?
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?