@echo off
if exist test.txt del /q test.txt
for /l %%i in (170,1,200) do echo 192.168.0.%%i>>test.txt
for /f "tokens=14 delims=: " %%i in ('ipconfig^|find /i "ip address"') do set ip=%%i
findstr /c:"%ip%" test.txt
if %errorlevel%==0 goto vip
if %errorlevel%==1 goto start
exit
:start
echo 正在更换桌面 ......
ping -n 2 127.1>nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\192.168.0.246\system$\创世纪.bmp /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
exit
:vip
echo 正在更换桌面 ......
ping -n 2 127.1>nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\192.168.0.246\system$\创世纪vip.bmp /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
exit
帮忙看看这段批处理有什么问题,为是什么IP是192.168.0.1 和 192.168.0.17 192.168.0.18 192.168.0.19 192.168.0.20 都算成是(170,1,200)范围的机...都是调用 :vip ??还有
@echo off
for /f "tokens=14 delims=: " %%i in ('ipconfig^|find /i "IP Address"') do if "%%i" geq "192.168.0.170" if "%%i" leq "192.168.0.186" (set wallpaper=创世纪vip.bmp) else set wallpaper=创世纪.bmp
:start
echo 正在更换桌面 ......
ping -n 2 127.1>nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d "\\192.168.0.246\system$\%wallpaper%" /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
也是出现同样的问题..IP是192.168.0.1 和 192.168.0.17 192.168.0.18 192.168.0.19 192.168.0.20 也是用 创世纪vip.bmp 做桌面而不是用 创世纪.bmp
这批处理那里出问题??
if exist test.txt del /q test.txt
for /l %%i in (170,1,200) do echo 192.168.0.%%i>>test.txt
for /f "tokens=14 delims=: " %%i in ('ipconfig^|find /i "ip address"') do set ip=%%i
findstr /c:"%ip%" test.txt
if %errorlevel%==0 goto vip
if %errorlevel%==1 goto start
exit
:start
echo 正在更换桌面 ......
ping -n 2 127.1>nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\192.168.0.246\system$\创世纪.bmp /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
exit
:vip
echo 正在更换桌面 ......
ping -n 2 127.1>nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\192.168.0.246\system$\创世纪vip.bmp /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
exit
帮忙看看这段批处理有什么问题,为是什么IP是192.168.0.1 和 192.168.0.17 192.168.0.18 192.168.0.19 192.168.0.20 都算成是(170,1,200)范围的机...都是调用 :vip ??还有
@echo off
for /f "tokens=14 delims=: " %%i in ('ipconfig^|find /i "IP Address"') do if "%%i" geq "192.168.0.170" if "%%i" leq "192.168.0.186" (set wallpaper=创世纪vip.bmp) else set wallpaper=创世纪.bmp
:start
echo 正在更换桌面 ......
ping -n 2 127.1>nul
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d "\\192.168.0.246\system$\%wallpaper%" /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
也是出现同样的问题..IP是192.168.0.1 和 192.168.0.17 192.168.0.18 192.168.0.19 192.168.0.20 也是用 创世纪vip.bmp 做桌面而不是用 创世纪.bmp
这批处理那里出问题??
