当前 Firefox 配置文件在 Windows 中使用 VBS 的路径



如何使用java脚本导航到Firefox的当前配置文件目录或知道Windows中的名称文件夹配置文件,因为每个用户的配置文件名称都会随机更改

使用批处理文件,您可以尝试如下:

@echo off
Color 0E & Mode con cols=107 lines=10
Title Find Cache Folder and File on Mozilla Firefox by Hackoo
echo(
Set "Profile_Folder=%AppData%MozillaFirefoxProfiles"
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

最新更新