2>nul >nul reg query "HKCU\Software\Microsoft\Office\12.0\Outlook\Setup\First-Run" && (
reg delete "HKCU\Software\Microsoft\Office\12.0\Outlook\Setup\First-Run"
reg delete "HKCU\Software\Microsoft\Office\12.0\Outlook\Setup\FirstRun"
reg add "HKCU\Software\Microsoft\Office\12.0\Outlook\Setup" /v "ImportPRF" /d "\\w2k3nas01\public\office.2007\prf\cs.outlook07.PRF" /f
reg add "HKCU\Software\Microsoft\Office\12.0\Common\General" /v "ShownOptIn" /t reg_dword /d 0x1 /f
reg add "HKCU\Software\Microsoft\Office\12.0\Outlook\Search" /v "DisableDownloadSearchPrompt" /t reg_dword /d 0x1 /f
reg add "HKCU\Software\Microsoft\Office\12.0\Outlook\Options\RSS" /v "SyncToSysCFL" /t reg_dword /d 0x0 /f
) || (
REM anything to do if the key is already deleted, which usually is - nothing
)
Batch is different then a true language, where in VB or JS you would normally write something like:
If <condition> then {
do something
}
else {
Do nothing
}
end if
Batch, you can write:
If exist <value> do (<something>)
You are not required to write an else or else if, if nothing else is needed.