日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

RAR分割工具

發布時間:2024/1/1 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RAR分割工具 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
set size=500k?? ;設置默認大小
set BBSpath=D:\分割??????? ;設置默認存放位置
if {%1}=={} goto readme
::????????????? 定位 rar.exe 目錄位置,請確認已經安裝了Winrar
del %temp%\RAR分割.txt >nul
del %temp%\$cd$.txt >nul
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.rar\ShellNew" /v "FileName">%temp%\$cd$.txt
for /f "skip=4 tokens=3 delims= " %%i in (%temp%\$cd$.txt) do set rarpath=%%~dpi
del %temp%\$cd$.txt
if exist "%rarpath%rar.exe" goto rarfile
if exist "%ProgramFiles%\winrar\rar.exe" set rarpath=%ProgramFiles%\winrar\
if not exist "%ProgramFiles%\winrar\rar.exe" goto norar
::?????????? 開始使用 rar.exe 分卷壓縮目標文件
:rarfile
FOR /F "delims=" %%i IN ('echo %*') DO set name=%%~ni
md %BBSpath%
md %BBSpath%\%name%
set ext=%~x1
::???? -m<n>?? 設置壓縮模式:
::?? -m0 存儲;-m1 最快;-m2 較快; -m3 標準; -m4?? 較好; -m5 最好
set level=5
if {%ext%}=={.7z} set level=0
if {%ext%}=={.7Z} set level=0
if {%ext%}=={.rar} set level=0
if {%ext%}=={.RAR} set level=0
if {%ext%}=={.jpg} set level=0
if {%ext%}=={.JPG} set level=0
@echo ******************** %name% 分割紀錄 ******************** >>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo. >>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo 分割的原始文件路徑為:>>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo ├→ %1>>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo │ >>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo 分割生成了以下文件,每個文件大小為 %size% :>>%BBSpath%\%name%\%name%_分割紀錄.txt
::???? 壓縮開始了!
"%rarpath%rar.exe" a -ep1 -m%level% -v%size% %BBSpath%\%name%\%name%.rar %1
@FOR /r %BBSpath%\%name% %%I in (*.rar) DO (
@echo ├─ %%I>>%BBSpath%\%name%\%name%_分割紀錄.txt
)
@echo │ >>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo *******************%name% 記錄結束*********************** >>%BBSpath%\%name%\%name%_分割紀錄.txt
@echo. >>%BBSpath%\%name%\%name%_分割紀錄.txt
start explorer %BBSpath%\%name%
set name=
goto end
::?????????? 系統中找不到 rar.exe 時候的錯誤提示
:norar
del %temp%\RAR分割.txt >nul
@echo ================ 錯誤提示:================>>%temp%\RAR分割.txt
@echo. >>%temp%\RAR分割.txt
@echo 在您的電腦中沒有找到 rar.exe 。>>%temp%\RAR分割.txt
@echo 請確認您已經安裝了 Winrar 。>>%temp%\RAR分割.txt
@echo 重新安裝 Winrar 可以修復這個問題。>>%temp%\RAR分割.txt
@echo. >>%temp%\RAR分割.txt
@echo ============== 錯誤提示結束 ==============>>%temp%\RAR分割.txt
start notepad.exe %temp%\RAR分割.txt
goto end
::??????????????????? 沒有提交文件時,彈出的使用說明
:readme
del %temp%\RAR分割.txt >nul
@echo. >>%temp%\RAR分割.txt
@echo ******************************使用注意******************************>>%temp%\RAR分割.txt
@echo. >>%temp%\RAR分割.txt
@echo 本工具是基于winrar的,請確保你已經安裝了winrar,否則無法使用該工具。>>%temp%\RAR分割.txt
@echo ****************************** 使用方法 ***************************** >>%temp%\RAR分割.txt
@echo. >>%temp%\RAR分割.txt
@echo??? 把需要分割的單個文件或者單個文件夾,直接托拽到該工具上,可參考圖示>>%temp%\RAR分割.txt
@echo??? 分割工具會自動調用 rar.exe, 將提交的文件或者目錄分割成指定大小>>%temp%\RAR分割.txt
@echo??? 的分卷rar壓縮文件,并保存在指定的目錄中。 >>%temp%\RAR分割.txt
@echo??? 對于提交的 7zip、rar、jpg 文件,分割工具只分卷打包,不做壓縮。 >>%temp%\RAR分割.txt
@echo. >>%temp%\RAR分割.txt
@echo ****************************** 友情提示 ***************************** >>%temp%\RAR分割.txt
@echo??? 默認分卷大小為500k,分割后保存在D:\分割,并自動打開該目錄!>>%temp%\RAR分割.txt
start notepad.exe %temp%\RAR分割.txt
goto end
:end
set size=
set BBSpath=
set name=
set rarpath=
set level=

轉載于:https://blog.51cto.com/493517530/181634

總結

以上是生活随笔為你收集整理的RAR分割工具的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。