windows - Why wont this registry data value update? -
i writing batch script add registry key default value wont write value. value needs be:
"c:\program files (x86)\microsoft office\office14\excel.exe" /dde "%1"
i think has quotation mark characters " " cant figure out how make batch script understand needs in data value.
this using:
reg add hkey_classes_root\excel.sheet.12\shell\open\command /ve /d "c:\program files (x86)\microsoft office\office14\excel.exe" /dde "%1" /f
reg add "hkey_classes_root\excel.sheet.12\shell\open\command" /ve /d "\"c:\program files (x86)\microsoft office\office14\excel.exe\" /dde \"%%1\"" /f
you need escape inner quotes , %1
replaced parser sees first argument batch file
Comments
Post a Comment