- @echo off & cd /d "%~dp0" & fltmc >nul || (powershell -Command "Start-Process '%~f0' -Verb RunAs" & exit /b)
- rem 保存为ansi编码
- for /f "delims=" %%d in ('dir /b /s /ad "C:\Program Files\software_*" "C:\Program Files (x86)\software_*"') do (
- if /i "%%~nxd" equ "software_1.0" (
- copy "DATA_1.0" "%%d\"
- ) else if /i "%%~nxd" equ "software_2.5" (
- copy "DATA_2.5" "%%d\"
- ) else if /i "%%~nxd" equ "software_10" (
- copy "DATA_10" "%%d\"
- )
- )
- pause
复制代码
假设 C:\Program Files C:\Program Files (x86) 均已存在 |