加当前日期-后缀
@echo off
setlocal enabledelayedexpansion
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /value') do set datetime=%%I
set datetime=%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2%
rem 设置文件名分隔符
set split=_
rem 获取文件名和扩展名
set file0=%1
set fn=%~n1
set kzm=%~x1