среда, 21 января 2015 г.

Очистка кэша Outlook / Clear Outlook Cache


CLS
ECHO OFF

ECHO Reset the nickname and the automatic completion caches in Outlook 2002-2013 on Windows XP, Vista, 7
ECHO .
REM CMD Script

REM === Outlook 2002 - 2007
ECHO Clear nickname cache in Outlook 2002 - 2007 ..
IF EXIST "%APPDATA%\Microsoft\Outlook\*.NK2" (
REN "%APPDATA%\Microsoft\Outlook\*.NK2" *.BAK_NK2
IF %ERRORLEVEL%==0 ECHO Successful.
) ELSE (ECHO Cache file not found.)

ECHO .
REM === Outlook 2010 x86
ECHO Clear nickname cache in Outlook 2010 ..
IF EXIST "%ProgramFiles(x86)%\Microsoft Office\Office14\OUTLOOK.EXE" (
ECHO Outlook 2010 x86 EXIST! Cache will be cleared.
"%ProgramFiles(x86)%\Microsoft Office\Office14\OUTLOOK.EXE" /CleanAutoCompleteCache
) ELSE (
ECHO Outlook 2010 x86 NOT EXIST
REM === Outlook 2010 x64
IF EXIST "%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE" (
ECHO Outlook 2010 x64 EXIST! Cache will be cleared.
"%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE" /CleanAutoCompleteCache
) ELSE (ECHO Outlook 2010 x64 NOT EXIST)
)

ECHO .
REM === Outlook 2013 x86
ECHO Clear nickname cache in Outlook 2013 ..
IF EXIST "%ProgramFiles(x86)%\Microsoft Office\Office15\OUTLOOK.EXE" (
ECHO Outlook 2013 x86 EXIST! Cache will be cleared.
"%ProgramFiles(x86)%\Microsoft Office\Office15\OUTLOOK.EXE" /CleanAutoCompleteCache
) ELSE (
ECHO Outlook 2013 x86 NOT EXIST
REM === Outlook 2013 x64
IF EXIST "%ProgramFiles%\Microsoft Office\Office15\OUTLOOK.EXE" (
ECHO Outlook 2013 x64 EXIST! Cache will be cleared.
"%ProgramFiles%\Microsoft Office\Office15\OUTLOOK.EXE" /CleanAutoCompleteCache
) ELSE (ECHO Outlook 2013 x64 NOT EXIST)
)

ECHO Done.
PAUSE

Комментариев нет:

Отправить комментарий