複製貼上下方文字為 batch file , 拖曳欲壓縮的資料夾在 batch file 上即可自動生成 7Z 文件
(不壓縮 .svn Build Conf 等目錄)
@echo off
::Batch File to Auto Creat BIOS source code backup , ignore Build , .SVN , CONF folder
::Usage , Drag and Drop the Folder to be backup to the Batch file
::Rewolf @ 2016/02/17
set ZG=C:\Program Files\7-Zip\7zG.exe
for %%a in (%*) do (dir /a %%a|findstr "DIR" >nul 2>nul && ("%ZG%" a -r -mx9 -xr!build -xr!conf -xr!.svn "%%~dpa%%~na.7z" "%%~a"))
set ZG=
echo on
沒有留言:
張貼留言