本帖最后由 ygqiang 于 2011-12-11 14:43 编辑
- @echo on
- setlocal enableDelayedExpansion
- copy /y beijing.jpg C:\
- set "pic=C:\beijing.jpg"
- if "!pic!"=="" set pic="%userProfile%\Local Settings\Application Data\Microsoft\Wallpaper1.bmp"
- reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v "Wallpaper" /t REG_SZ /d !pic!
- reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v "OriginalWallpaper" /t REG_SZ /d !pic!
- reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v "ConvertedWallpaper" /t REG_SZ /d !pic!
- reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v "WallpaperStyle" /t REG_SZ /d 2
-
- taskkill /f /im explorer.exe
- RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
- start explorer.exe
-
- exit
复制代码 这个方法可以设置,但并不能马上显示,而且注销系统以后,也不能显示修改以后的桌面背景。
具体要求就在1楼 |