China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-27 15:43
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Change desktop background View 11,577 Replies 30
Floor 31 Posted 2008-04-08 13:50 ·  中国 浙江 嘉兴 平湖市 电信
初级用户
★★
Credits 157
Posts 67
Joined 2007-05-13 11:03
19-year member
UID 88378
Gender Male
Status Offline
If your system did not originally set up the wallpaper display mode properly, then there is an additional rule below to display the wallpaper in stretch mode. When using it, pay attention to modifying the wallpaper storage path, and the wallpaper image must be in BMP format!

@echo off
rem The "Monday.bmp - Sunday.bmp" are stored in the Wallpaper directory
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d .\Wallpaper\te:~11,4%.bmp /f
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallpaperStyle /d 2 /f
gpupdate /force
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters

[ Last edited by tvzml on 2008-4-8 at 01:55 PM ]
Forum Jump: