中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-15 04:33
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS批处理 & 脚本技术(批处理室) » Practical Batch Processing [Part] Changing Desktop Background
Printable Version  2,552 / 7
Floor1 wxcute Posted 2008-07-12 17:32
中级用户 Posts 211 Credits 458
Take advantage of today's free time, post some practical P

I know this has been posted by someone else, but I have something different.

Mine can set jpg images as background, someone else has posted before that can set jpg images, but it requires DLL file support, but mine doesn't.

It seems to involve the problem that the system automatically converts jpg to bmp format. I hope those with knowledge can study out how the system automatically converts it.

"%userProfile%\Local Settings\Application Data\Microsoft\Wallpaper1.bmp"
This is the complete path of the current desktop background.

Test environment: XP SP2

This has been posted on the forum.

[ Last edited by wxcute on 2008-7-12 at 08:08 PM ]
Floor2 wxcute Posted 2008-07-12 18:17
中级用户 Posts 211 Credits 458
Poor, no one is reading, bumping it myself.
Floor3 HAT Posted 2008-07-12 19:01
版主 Posts 5,017 Credits 9,023
::Can also prohibit changing the wallpaper through desktop properties

Personally, I think this is not good.

[ Last edited by HAT on 2008-7-12 at 07:03 PM ]
Floor4 wxcute Posted 2008-07-12 19:10
中级用户 Posts 211 Credits 458
Sorry, this was forgotten to be sent.
Floor5 pusofalse Posted 2008-07-12 19:11
银牌会员 Posts 646 Credits 1,604
Top~ ^_^
rundll32.exe is really powerful.
Floor6 HAT Posted 2008-07-12 20:05
版主 Posts 5,017 Credits 9,023


把你的两个批处理合并成一个不就行了吗
Floor7 wxcute Posted 2008-07-12 20:11
中级用户 Posts 211 Credits 458
Reply to floor 6
One use doesn't work. You need to wait for the system to successfully convert the image, otherwise it won't work.

Also, the system automatically converts jpg to bmp. Has anyone studied this? I can't figure it out. Is it using mspaint or shimgvw.dll?
Floor8 dato Posted 2008-07-12 22:38
高级用户 Posts 377 Credits 916
I once used PNG to write to the registry, but the actual boot result might have a half-screen black screen phenomenon when loading the PNG wallpaper. Finally, it was found that all formats were finally converted to BMP format. So it's not troublesome to use BMP for all.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023