|
Answer» I am trying to fix a registry issue that was caused when my company upgraded from OFFICE 2003 to Office 2010. I have tried a few different things but have had no success. Heres the info: Path: HKCR\applications\excel.exe\shell\open\command Value: (Default) RegKey: REG_SZ Data: C:\Program Files\Microsoft Office\Office14\Excel.exe "%1"
I have tried the command below, and a couple variations, but it has not worked at all, Any help would be appreciated.
reg add HKCR\Applications\excel.exe\shell\open\command /ve /t REG_SZ /d "C:\Program Files\Microsoft Office\Office14\EXCEL.EXE""1%" /f Why would you need a batch file to do this ? ?This entry does not get upgraded when we did the upgrade. The path for excel.exe still point to the Office 11 folder, which no LONGER contains an excel.exe. I would like to create the batch file so that I dont have to manually change the 1 to a 4 for all users, already had to do that a handful of times The easiest way would be to create a reg file and then use a reg import command inside your batch file to make the changes. If you don't need the batch file for any other functions, then you can just create the reg file.
How to create reg file:
What you need to do is make the change on one system manually, then before you close the registry editor, right click on the folder that you are in (in your case I think it would be called command) and select export from the menu. Name the file what you like. In the same folder as that file, create your batch file and SIMPLY put...
@echo off reg import [file name here].reg
Save that batch and now you can COPY, both it, and the reg file.It's a legit use for a batch file guys - this seems to work here.
Code: [Select]@echo off reg add HKCR\Applications\excel.exe\shell\open\command /ve /t REG_SZ /d "C:\Program Files\Microsoft Office\Office14\EXCEL.EXE \"%%1\"" /f
|