1 Star 0 Fork 56

NeverMore0609/win-principle-2020

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
backup.bat 717 Bytes
一键复制 编辑 原始数据 按行查看 历史
jicheng 提交于 2020-08-27 10:28 . add SSH
chcp 437
cls
@title determine whether the folder exists or not
@echo off
rem remove / from the date
set date=%date:/=%
rem remove : from the time
set time=%time::=%
rem set time=%time: =%
if "%time:~0,1%"==" " set time0=0%time:~1%
set yymmddss=%date:~3,4%_%date:~7,2%_%date:~9,2%_%time0:~0,6%
echo %yymmddss%
if not exist backups ( @md backups
)
@md backups\%yymmddss%
if not exist .git ( echo .git does not exist
) else ( @xcopy/s/e/y .git\ backups\%yymmddss%\.git\
)
if not exist .git_hub ( echo .git_hub does not exist
) else ( @xcopy/s/e/y .git_hub\ backups\%yymmddss%\.git_hub\
)
if not exist .git_ee ( echo .git_ee does not exist
) else ( @xcopy/s/e/y .git_ee\ backups\%yymmddss%\.git_ee\
)
@pause
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/nevermore0609/win-principle-2020.git
[email protected]:nevermore0609/win-principle-2020.git
nevermore0609
win-principle-2020
win-principle-2020
master

搜索帮助