
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
set FILE=ABC.exe
for /f "tokens=*" %%i in ('"wmic logicaldisk where drivetype=3 get DeviceID|findstr ":""') do (
set NA=%%i
echo !NA:~0,2!%file%
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |