login batch script to modify reg if certain reg file exist on pc
Posted on 2010-11-08
Hi Experts. As I upgrade these Windows XP machines from Office 2003 to 2007, I need to modify the registry on the upgraded pc's. I don't know the term to use for the login script to modify the registry only if the Office 12.0 reg entry is there. This is what I have:
if exist "hkcu\software\microsoft\office\12.0"
reg delete HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Setup\First-Run
I'm not sure how to specify what to do if that reg file does "not" exist. How can I specify if exist, do A; if entry doesn't exist, do B?
Thanks in advance.