Skip to content

Instantly share code, notes, and snippets.

@hoozh
Created April 25, 2017 02:01
Show Gist options
  • Save hoozh/de224afb3b17f3a9f778aa6b9909d81c to your computer and use it in GitHub Desktop.
Save hoozh/de224afb3b17f3a9f778aa6b9909d81c to your computer and use it in GitHub Desktop.
7z 备份文件
@echo off
@SET EXEPATH="..\7-Zip\7z.exe"
@SET PROJECTPATH="\\192.168.1.8\文件夹\文件夹1"
%EXEPATH% a -tzip "文件夹1_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.zip" %PROJECTPATH%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment