简体   繁体   中英

the path of current firefox profile using vbs in windows

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

With a batch file you can try like this :

@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%\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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM