第一个
@echo off
for /f "tokens=15" %%a in ('ipconfig^|findstr /i "IP"') do (
set IP=%%a
goto :show
)
:show
echo 本机IP地址为%IP%
第二个
@echo off
reg add "HKEY_CURRENT_USER\Control Panel\International" /v sShortDate /t REG_SZ /d "YYYY-MM-DD" /f
reg add "HKEY_CURRENT_USER\Control Panel\International" /v sTimeFormat /t REG_SZ /d "HH:MM:SS" /f
第三个
@echo off
for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where "DriveType='5'" get * /value ^| findstr /i "^DeviceID"') do set cdrom=%%a
copy /y "%cdrom%\*.*" "C:\"