即时为我的电脑设置备份,有人可以帮我设置一个批处理文件,压缩用户文件夹将其重命名为日期并通过ftp将其上传到服务器。 用7zip在网上尝试了一些例子,但似乎没有用。
感谢
发现这是拉链并重命名
@ECHO OFF
Title testizarc.bat
REM updated 10/22/2014
REM Replace space in hour with zero if it's less than 10
SET hr=%time:~0,2%
IF %hr% lss 10 SET hr=0%hr:~1,1%
REM This sets the date like this: mm-dd-yr-hrminsecs1/100secs
Set TODAY=%date:~4,2%-%date:~7,2%-%date:~10,4%- %hr%%time:~3,2%%time:~6,2%%time:~9,2%
REM Use IZArc to Zip files in folder c:\testzip and place the zip archive
REM in C:\testmove
ECHO.
ECHO Zipping all files in C:\testzip and moving archive to c:\testmove
ECHO.
izarcc -a -cx "C:\testmove\xxxx_%TODAY%.zip" "C:\testzip\*.*"
ECHO.
ECHO Delete the files in orginal folder
DEL "C:\testzip\*.*"
PAUSE
:end
EXIT /B 0