
CODE: [Copy to clipboard]@echo off
for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where "DriveType='2'" get * /value ^| findstr /i "^DeviceID"') do set U=%%a
echo 可移动磁盘的盘符:%U%
copy "C:\test\a.txt" %U%\
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |