标签:日记 完成 vsp 文件夹 set netcore pre sharp for
备份文件:BackupSourceCode.bat
::自动备份当前文件夹 ::by luomg, 21:15 2010-10-13 ::minguiluo@163.com @echo off title "DoNetCore bakpath" set "lj=%~p0" set "lj=%lj:\= %" for %%a in (%lj%) do set wjj=%%a echo 当前文件夹是:%wjj% set b=%cd% set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%" set "bakpath=F:\Github2018\backup\%wjj%_%ymd%\" echo 当前路径:%b% echo 备份路径:%bakpath% md %bakpath% xcopy /e /y %b% %bakpath% ping /n 3 127.0.0.1 >nul @echo 数据备份完成,3秒后程序退出。 ::exit @pause
清理项目无用文件:Cleanfiles.bat
@for /r . %%I in (debug) do if exist "%%I" rd/s/q "%%I" @for /r . %%I in (bin) do if exist "%%I" rd/s/q "%%I" @for /r . %%I in (obj) do if exist "%%I" rd/s/q "%%I" @for /r . %%I in (clientbin) do if exist "%%I" rd/s/q "%%I" @for /r . %%I in (TestResults) do if exist "%%I" rd/s/q "%%I" del /s/q/f *.user del /s/q/f *.suo del /s/q/f *.vspscc rd /s/q .vs
标签:日记 完成 vsp 文件夹 set netcore pre sharp for
原文地址:https://www.cnblogs.com/luomingui/p/10925607.html