VS备份编译的版本

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

@echo off

title 后期事件生成命令行

rem 参数判断
if "%1" equ "" ( goto err )
if "%2" equ "" ( goto err )
if "%3" equ "" ( goto err )
if "%4" equ "" ( goto err )

setlocal enabledelayedexpansion
for /f tokens^=2^ delims^=^" %%1 in ('findstr "^\[.*AssemblyVersion.*\]$" "%1"') do (
	echo. >>Backup.log
	echo %date:~0,10% %time:~0,8% >> Backup.log
	echo %2%3_v%%1%4 >> Backup.log
	copy /y /v "%2%3%4" "%2%3_v%%1%4" >> Backup.log
	goto end
)
goto end
endlocal

:err
echo.
echo.参数缺少
echo.
pause

:end