The syntax below worked for me. Note the /ve switch instead of /v. Add /f to the end if you don't want to be prompted to overwrite the value.
REG ADD HKLM\SOFTWARE\Classes\regfile\shell\open\command /ve /t reg_sz /d "%systemroot%\System32\Notepad.exe %1" However, if you're just trying to make the default behavior to EDIT instead of MERGE a .REG file when you double-click on it, the command line below is better. This changes the default instead of changing what "merge" means. REG ADD HKLM\SOFTWARE\Classes\regfile\shell /ve /t reg_sz /d "edit" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern Jeff D. Team EITC Sent: Friday, July 22, 2005 3:58 PM To: [email protected] Subject: [ActiveDir] OT Registry modification via commandline I am attempting to make a modification of the regfile type in the registry via command line. I have read over the reg command. Reg add "HKLM/Software/Classes/regfile/shell/open/command" /V (Default) /d "%systemroot%\System32\Notepad.exe %1" This works but nor really. I actually need it to modify the (default) value that is already there. I tried doing a delete first and then the add But then I end up with two (Default) values. Anyone have any clue how the default Value can be modified. List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
