請將以下文字貼上到筆記本中,並且存檔成"fix.bat"。
當出現沒回應的時候,再執行fix.bat就可以了。
當出現沒回應的時候,再執行fix.bat就可以了。
@echo off
cd /d C:\WINDOWS\Prefetch
del ROCKETDOCK*exe*.pf
@echo off
cd /d C:\WINDOWS\Prefetch
del ROCKETDOCK*exe*.pf
@echo off
FOR /F %%a IN ('dir /b *.xpi') DO "locale.bat" "%%a"@echo off
cd /d "xpi檔的存放目錄"
winrar x %1 chrome
IF NOT EXIST chrome\*.jar GOTO nojar
move chrome\*.jar .\
rd chrome /s /q
FOR /F %%a IN ('dir /b *.jar') DO SET JARFILE=%%a
winrar x *.jar "locale\*" \
move "locale\en-US" "en-US"
move "locale\zh-TW" "zh-TW"
rd locale /s /q
md locale
move en-US locale
move zh-TW locale
winrar d %JARFILE% locale
winrar u %JARFILE% "locale"
md chrome
move *.jar chrome
winrar d %1 chrome\%JARFILE%
winrar u %1 chrome
rd chrome /s /q
rd locale /s /q
GOTO end
:nojar
move chrome\locale locale
rd chrome /s /q
md chrome
move locale chrome\locale
move "chrome\locale\en-US" "en-US"
move "chrome\locale\zh-TW" "zh-TW"
rd chrome\locale /s /q
md chrome\locale
move en-US chrome\locale
move zh-TW chrome\locale
winrar d %1 chrome\locale
winrar u %1 chrome
rd chrome /s /q
:end
@echo off
move "7z\7z.exe" "..\7z.exe"
move "7z\7z.dll" "..\7z.dll"
move "7z\7z.sfx" "..\7z.sfx"
cd ..
echo 正在壓縮檔案 %cd%FXP.exe ...
7z a -mmt=on -sfx7z.sfx "FXP.tmp" "FirefoxPortable\"
move "7z.exe" "FirefoxPortable\7z\7z.exe"
move "7z.dll" "FirefoxPortable\7z\7z.dll"
move "7z.sfx" "FirefoxPortable\7z\7z.sfx"
echo FXP.exe 壓縮完成。
echo 移動壓縮檔 %cd%FXP.exe 到隨身碟...
if exist "D:\FXP.exe" goto movetod
if exist "E:\FXP.exe" goto movetoe
if exist "F:\FXP.exe" goto movetof
if exist "G:\FXP.exe" goto movetog
if exist "H:\FXP.exe" goto movetoh
if exist "I:\FXP.exe" goto movetoi
echo 壓縮檔 %cd%FXP.exe 移動失敗,請手動移動檔案。
pause
exit
:movetod
move /y "FXP.tmp" "D:\FXP.exe"
goto fin
:movetoe
move /y "FXP.tmp" "E:\FXP.exe"
goto fin
:movetof
move /y "FXP.tmp" "F:\FXP.exe"
goto fin
:movetog
move /y "FXP.tmp" "G:\FXP.exe"
goto fin
:movetoh
move /y "FXP.tmp" "H:\FXP.exe"
goto fin
:movetoi
move /y "FXP.tmp" "I:\FXP.exe"
goto fin
:fin
echo FirefoxPortable自解檔已經儲存到隨身碟。
pause