does my syntax here look right for the find and if errorlevel commands?
reg query hkcu\software\microsoft\office\11.0\excel\options\ /v OPEN > c:\poo.txt
FIND /I "OPEN" C:\poo.txt
if errorlevel 0 goto OPEN1
REG ADD hkcu\software\microsoft\office\11.0\excel\options\ /v OPEN /t REG_SZ /d "C:\Program Files\Microsoft Office\OFFICE11\Library\test.xla"
GOTO END
thanks
reg query hkcu\software\microsoft\office\11.0\excel\options\ /v OPEN > c:\poo.txt
FIND /I "OPEN" C:\poo.txt
if errorlevel 0 goto OPEN1
REG ADD hkcu\software\microsoft\office\11.0\excel\options\ /v OPEN /t REG_SZ /d "C:\Program Files\Microsoft Office\OFFICE11\Library\test.xla"
GOTO END
thanks