1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| @echo off
Color 0E & Mode con cols=107 lines=10
Title Find Cache Folder and File on Mozilla Firefox by Hackoo 2017
if _%1_==_Main_ goto :Main
:getadmin
echo( & echo(
echo %~nx0 : self elevating
set vbs=%temp%\getadmin.vbs
(
echo Set UAC = CreateObject^("Shell.Application"^)
echo UAC.ShellExecute "%~s0", "Main %~sdp0 %*", "", "runas", 1
)> "%vbs%"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
goto :eof
::********************************************************************
:Main
echo(
Set "Profile_Folder=%AppData%\Mozilla\Firefox\Profiles\"
CD /D "%Profile_Folder%"
Set "Pattern=cache*"
set "Cache_Path=%~dp0Cache_Path.txt"
For /f %%f in ('Where /R %Profile_Folder% "%Pattern%" /F') Do (
Set "Cache_Folder=%%~dpf"
Set "Cache_File=%%f"
)
echo Folder Cache : "%Cache_Folder%"
echo(
echo File Cache : %Cache_File%
(
echo Cache_Folder : "%Cache_Folder%"
echo File Cache : %Cache_File%
)> %Cache_Path%
Start "" "%Cache_Path%" & pause>nul |
Partager