@Echo off & CD/d "%~dp0"
Set "_dir=Roaming,Local"
Echo\Killing iE and Jabber!...
Setlocal EnableDelayedExpansion
%:^(
For %%i in ("CiscoJabber.exe", "CiscoJabberPrt.exe",iexplore.exe
)do Rem./ & 2>nul >nul "%__APPDIR__%Taskkill.exe" /f /t /im %%~I
;Echo\Checking if still running... && for %%i in (CiscoJabber,iExplore
)do 2>nul "%__APPDIR__%Tasklist.exe" /nh |Find/i "%%i.exe" >nul && Goto %:^(
>nul 2>&1 "%__APPDIR__%RunDll32.exe" InetCpl.cpl,ClearMyTracksByProcess 4351
%:^)
(%__APPDIR__%Tasklist.exe |Find/i "CiscoJabber.exe" >nul || For %%i in (!_dir!)do (
If /i exist "%UserProfile%\AppData\%%~i\Cisco\Unified Communications\Jabber\*" (
CD /d "%UserProfile%\AppData\%%~i\Cisco\Unified Communications\Jabber\" && (
cmd/v/c "Echo\Deleting: !cd! & RMdir/q/s "!cd!." & Echo\\Deleted: !cd!\" )))
) 2>nul & "%__APPDIR__%Tasklist.exe" |Find/i "CiscoJabber" >nul && Goto %:^(
;Rem./ && Echo\Deleting: %tmp% & 2>nul RMDir/q /s "%tmp%\." & Echo\\Deleted: %tmp%\
;Rem./ && "%__APPDIR__%IPConfig.exe" /flushdns|Find/i "DNS" & Endlocal && Goto=:EOF
Killing iE and Jabber!...
Checking if still running...
Deleting: C:\Users\ecker\AppData\Roaming\Cisco\Unified Communications\Jabber
\Deleted: C:\Users\ecker\AppData\Roaming\Cisco\Unified Communications\Jabber\
Deleting: C:\Users\ecker\AppData\Local\Cisco\Unified Communications\Jabber
\Deleted: C:\Users\ecker\AppData\Local\Cisco\Unified Communications\Jabber\
Deleting: C:\Users\ecker\AppData\Local\Temp
\Deleted: C:\Users\ecker\AppData\Local\Temp\
Successfully flushed the DNS Resolver Cache.
Obs.: 1 iE Commands Souces: @R L H answer
Obs.: 2 A suggestion with the for loop, in case you need several iE commands to reset/clean/remove:
For %%i in ( 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 4351, 8192
)do 2>nul >nul "%__APPDIR__%RunDll32.exe" InetCpl.cpl,ClearMyTracksByProcess %%i
1 == Browsing History
2 == Cookies
4 == Temporary Internet Files
8 == Offline favorites and download history
16 == Form Data
32 == Passwords
64 == Phishing Filter Data
128 == Web page Recovery Data
256 == Do not Show GUI when running the cache clear
512 == Do not use Multi-threading for deletion
1024 == Valid only when browser is in private browsing mode
2048 == Tracking Data
4096 == Data stored by add-ons
4351 == Delete all w/Data stored by add-ons
8192 == Preserves Cached data for Favorite websites
- An alternative (conventional / slightly simpler)
with the same outputs, would be:
@Echo off
CD /d "%~dp0"
Setlocal EnableDelayedExpansion
:to_kill_process
For %%i in (CiscoJabber.exe,CiscoJabberPrt.exe,iexplore.exe)do (
"%__APPDIR__%Taskkill.exe" /f /t /im %%~i
) 2>nul >nul
Echo\Stop/Kill iE and/or CiscoJabber... & echo\
For %%i in (CiscoJabber.exe,CiscoJabberPrt.exe,iexplore.exe)do (
"%__APPDIR__%tasklist.exe" /nh |Find/i "%%i.exe"
) 2>nul >nul&& Goto :to_kill_process
<con: Set /p "=Resetting iExplorer." <nul && (
"%__APPDIR__%RunDll32.exe" InetCpl.cpl,ClearMyTracksByProcess 4351
) && echo\ is Done..
echo\..done!
:to_del_folders
(
%__APPDIR__%Tasklist.exe |Find/i "CiscoJabber.exe" >nul
) || (
For %%i in (!_dir!) do If /i exist "%UserProfile%\AppData\%%~i\Cisco\Unified Communications\Jabber\*" (
(
CD /d "%UserProfile%\AppData\%%~i\Cisco\Unified Communications\Jabber\"
) && (
Echo\ & cmd.exe /v:on /c "Echo\Deleting: !cd! & RMdir /q /s "!cd!." & Echo\\Deleted: !cd!\"
)
)
) 2>nul
"%__APPDIR__%tasklist.exe" | Find/i "CiscoJabber" >nul && Goto :to_kill_process
Echo\ & Echo\Deleting: %tmp%
2>nul RMDir/q /s "%tmp%\."
Echo\\Deleted: %tmp%\ & Echo/
<con: Set /p "=Cleaning up DNsServerCache: " <nul
"%__APPDIR__%ipconfig.exe" /flushdns |find/i "DNS"
Endlocal & Goto :EOF
Stop/Kill iE and/or CiscoJabber...
Resetting iExplorer...done
Deleting: C:\Users\ecker\AppData\Roaming\Cisco\Unified Communications\Jabber
\Deleted: C:\Users\ecker\AppData\Roaming\Cisco\Unified Communications\Jabber\
Deleting: C:\Users\ecker\AppData\Local\Cisco\Unified Communications\Jabber
\Deleted: C:\Users\ecker\AppData\Local\Cisco\Unified Communications\Jabber\
Deleting: C:\Users\ecker\AppData\Local\Temp
\Deleted: C:\Users\ecker\AppData\Local\Temp\
Cleaning up DNsServerCache: Successfully flushed the DNS Resolver Cache.