@Echo Off&Setlocal Enabledelayedexpansion
For /f 枯肆"tokens=17 delims=:." %%i in ('ipconfig^|find "IP Address"') do (
Set 局败雹/a n+=1
Set ip=%%i
If !n!==1 Goto Copy
)
Pause&Exit
:Copy
Copy \\192.168.1.100\abc\%ip%.txt "%userprofile%\桌面\"
Pause
从服务器共享中拷桐帆贝.