|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『楼 主』:
更换桌面背景
使用 LLM 解释/回答一下
请问用批处理如何实现更换桌面背景呀!
Excuse me, how to achieve changing the desktop background with batch processing?
|
|
2006-11-22 12:31 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
) 桌面背景文件一般都默认是 .BMP 图像格式的文件,它默认存在于 %SystemRoot% 目录下。
) 查找注册表:
在windows桌面上设置一个背景,记下它的文件名。
如果不知道桌面设置在注册表的什么位置该怎么办?
(进入 Regedit 编辑注册表,查找你刚才找到的那个文件名,找到的位置就是桌面的设置部分,这东东的位置用不着背)
找到之后你就知道了它的位置。
) 知道了它的位置就可以用 Reg.exe 这个工具来在批处理里修改它的值了。
如何修改?
REG.EXE /? 看帮助:)
论坛“搜索”功能里有更多的关于操作注册表的例子:)
) 以上就是在不知道如何用批处理更换桌面背景、也不知道在注册表的什么位置、不知道Reg.exe怎么用的情况下,
来完成这项任务的 “原理”。
注:以上我已经在XP环境下做过实验了,完全可以。
所以,chainliq兄可以参考这个思路来找出方法~:)
) The desktop background file is generally a default.BMP image format file, and it is defaultly located in the %SystemRoot% directory.
) Find the registry:
Set a background on the Windows desktop and note down its file name.
If you don't know where the desktop setting is in the registry, what should you do?
(Enter Regedit to edit the registry, find the file name you just found, and the found position is the desktop setting part. You don't need to memorize the location of this thing)
After finding it, you will know its position.
) Once you know its position, you can use the Reg.exe tool to modify its value in the batch processing.
How to modify it?
Type REG.EXE /? to view the help:)
There are more examples of operating the registry in the forum "Search" function:)
) The above is the "principle" to complete this task when you don't know how to use batch processing to change the desktop background, don't know where the registry is, and don't know how to use Reg.exe.
Note: The above has been tested in the XP environment and is completely feasible.
So, Brother chainliq can refer to this idea to find out the method~:)
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-22 22:08 |
|
|
chainliq
高级用户
    学无尽止
积分 635
发帖 244
注册 2006-4-15 来自 广西贵港
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
呵呵,找出来啦,可我导入注册表的时候,要注销一次它才生效啊,有没有办法让它在不注销的情况下生效呀!就是说导入后能立即生效!
Hehe, found it out. But when I import the registry, I need to log off once for it to take effect. Is there a way to make it take effect immediately without logging off! That is, to take effect right after import!
|
|
2006-11-22 22:12 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
上次论坛看到一个贴子,立即刷新桌面的方法。
那位作者还是一贴多投记得,哈哈……
我帮你找一下(我就找5分钟啊,找不着我就不找了,哈哈……),你也找一下:)
I saw a post on the forum last time about the method to refresh the desktop immediately. That author still posted in multiple places, I remember, haha... I'll help you look for it (I'll only look for 5 minutes, if I can't find it, I won't look anymore, haha...), you can also look for it : )
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-22 22:15 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Take a look at this post, which has content related to refreshing: )
http://www.cn-dos.net/forum/viewthread.php?tid=24465&fpage=1&highlight=%E5%88%B7%E6%96%B0
How to use Rundll32 to "refresh the desktop" and reload "explorer.exe"?
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-22 22:19 |
|
|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
|
2006-11-22 22:47 |
|
|
zouzhxi
中级用户
   蝴蝶之吻
积分 430
发帖 177
注册 2006-9-20 来自 广东深圳
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
那我就发一个微软出品的工具吧.
微软出品“桌面壁纸自动换”
壁纸自动换(Slide Show) 是 Microsoft 出品的一个桌面增强工具,安装后它会集成于“显示属性”中,你可以指定任意一个包含有你要作为桌面背景图片的文件夹为壁纸自动换的图片目录,在“频率”选项中可以设定自动更新壁纸的时间,从一秒到一小时或者一个月,以及每次在启动 Windows 系统时是否自动更换新壁纸全由你做主。当你坐在电脑前学习工作时,由壁纸自动换给你带来的一张张崭新壁纸一定会带给你轻松愉快的好心情。
Then I'll post a tool produced by Microsoft.
Microsoft-produced "Desktop Wallpaper Auto-Changer"
Wallpaper Auto-Changer (Slide Show) is a desktop enhancement tool produced by Microsoft. After installation, it will be integrated into "Display Properties". You can specify any folder containing the wallpaper images you want as the image directory for Wallpaper Auto-Changer. In the "Frequency" option, you can set the time for automatically updating the wallpaper, from one second to one hour or one month, and whether to automatically change the new wallpaper each time the Windows system starts is up to you. When you sit in front of the computer to study and work, the brand-new wallpapers brought to you by Wallpaper Auto-Changer will definitely bring you a relaxed and happy mood.
附件
1: 微软出品“桌面壁纸自动换”.rar (2006-11-23 00:11, 74.37 KiB, 下载附件所需积分 1 点
,下载次数: 201)
|

Butterfly Kiss Blog
计算机DIY联盟论坛 |
|
2006-11-23 00:11 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
" 微软出品“桌面壁纸自动换"
这个软件不好删除.我用过一次.为了删除.在网上查了很久`````````
"Microsoft-produced "Desktop Wallpaper Auto-Switch"
This software is not easy to delete. I used it once. In order to delete it, I searched online for a long time`````````
|
|
2006-11-23 01:34 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
但是,既然能实现用批处理做出来更换桌面背景的代码,为什么还要这么喜欢第三方的工具呢?
估计这会儿chainliq兄的用批处理实现更改桌面背景的代码应该出来了,
俺个人建议批处理专业论坛应该鼓励用批处理实现想法~:)
chainliq兄如果做出来了传上来给你加高分~:)
Last edited by redtek on 2006-11-22 at 12:43 PM ]
But, since we can implement the code for changing the desktop background with batch processing, why do we still like third-party tools so much?
I guess Brother chainliq's code for changing the desktop background using batch processing should be out by now.
Personally, I suggest that the batch processing professional forum should encourage implementing ideas with batch processing ~:)
Brother chainliq, if you make it, upload it and I'll give you extra points ~:)
Last edited by redtek on 2006-11-22 at 12:43 PM ]
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-11-23 01:39 |
|
|
zouzhxi
中级用户
   蝴蝶之吻
积分 430
发帖 177
注册 2006-9-20 来自 广东深圳
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
没有呀...
微软出品“桌面壁纸自动换”
只有俩文件,,,
一个是bgswitch.dll
一个是bgswitch.exe
文件都在system32目录下...
还有在注册表里的值只有一个
"bgswitch"="C:\\WINDOWS\\system32\\bgswitch.exe"
Last edited by zouzhxi on 2006-11-23 at 02:49 AM ]
No...
Microsoft's "Desktop Wallpaper Auto Switch"
Only two files...
One is bgswitch.dll
The other is bgswitch.exe
Both files are in the system32 directory...
And there is only one value in the registry
"bgswitch"="C:\\WINDOWS\\system32\\bgswitch.exe"
Last edited by zouzhxi on 2006-11-23 at 02:49 AM ]
|

Butterfly Kiss Blog
计算机DIY联盟论坛 |
|
2006-11-23 02:46 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
好东西!可惜我用的是 Ubuntu~~~
Last edited by electronixtar on 2006-11-23 at 07:10 AM ]
Good stuff! Too bad I'm using Ubuntu~~~
Last edited by electronixtar on 2006-11-23 at 07:10 AM ]
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-11-23 07:06 |
|
|
vlq5299
初级用户
 
积分 136
发帖 59
注册 2006-6-2
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
删除 桌面壁纸自动换
1.注销组件:开始>>运行>>输入regsvr32.exe /u c:windowssystem32bgswitch.dll
2.删除文件:c:windowssystem32下面的bgswitch.exe和bgswitch.dll
3.清理注册表:删除注册表[HKEY_CURRENT_USERSoftwareMicrosoftWindows CurrentVersionRun] "bgswitch"="C:\WINDOWS\system32\bgswitch.exe"
搞定!!!
Delete desktop wallpaper auto-switch
1. Logout component: Start >> Run >> Enter regsvr32.exe /u c:windowssystem32bgswitch.dll
2. Delete files: bgswitch.exe and bgswitch.dll under c:windowssystem32
3. Clean registry: Delete the registry "bgswitch"="C:\WINDOWS\system32\bgswitch.exe"
Done!!!
|
|
2006-12-5 02:22 |
|
|
mozhe
新手上路

积分 4
发帖 2
注册 2007-4-27
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
代码
color 0a
title 正在更换桌面 ...
echo 正在添加注册表项目...
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\192.168.1.253\网管存档区$\飘\图片\死猫副本.bmp /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
cls
Code
color 0a
title Changing Desktop...
echo Adding registry entries...
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\192.168.1.253\Network Administrator Archive$\Floating\Pictures\Dead Cat Copy.bmp /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
cls
|
|
2007-4-27 18:05 |
|
|
sdzztz
新手上路

积分 2
发帖 1
注册 2007-4-29
状态 离线
|
|
2007-4-29 09:46 |
|
|
qq43142691
中级用户
  
积分 327
发帖 152
注册 2007-5-4
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
@echo off
title 按照星期或指定节日自动更改壁纸---P处理---by 彬(QQ:43142691) 2007-05-04
::【 获取当前日期文件 (today.ini) 】
date /t >today.ini
::开始执行相应命令::::::::::::::::::::::::::::::::
find "星期一" today.ini && set 壁纸文件名=星期壁纸\1
find "星期二" today.ini && set 壁纸文件名=星期壁纸\2
find "星期三" today.ini && set 壁纸文件名=星期壁纸\3
find "星期四" today.ini && set 壁纸文件名=星期壁纸\4
find "星期五" today.ini && set 壁纸文件名=星期壁纸\5
find "星期六" today.ini && set 壁纸文件名=星期壁纸\6
find "星期日" today.ini && set 壁纸文件名=星期壁纸\7
::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::
:: 【服务器设置(是否显示特殊节日)请在服务器处设置】请勿修改.否则出错
find "不启用" \\10.0.0.247\login$\彬\配置文件.ini && goto autoBZ
::::::::::::::::::::::::::::::::::::::::::::::::::
:: 【特殊节日表一定要填在这里。否则按星期执行(节日格式为 00-00 】
find "01-01" today.ini && set 壁纸文件名=节日壁纸\01
find "03-08" today.ini && set 壁纸文件名=节日壁纸\38
find "05-01" today.ini && set 壁纸文件名=节日壁纸\51
find "05-04" today.ini && set 壁纸文件名=节日壁纸\54
find "06-01" today.ini && set 壁纸文件名=节日壁纸\61
:::::::::::::::最终执行的命令::::::::::::::::::::::
:autoBZ
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\10.0.0.247\login$\彬\%壁纸文件名%.bmp /f
gpupdate /force
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
del today.ini
exit
@echo off
title Automatically Change Wallpaper According to Day of Week or Specified Holiday---P Processing---by Bin(QQ:43142691) 2007-05-04
::【 Get current date file (today.ini) 】
date /t >today.ini
::Start executing corresponding commands::::::::::::::::::::::::::::::::
find "Monday" today.ini && set wallpaperFileName=Week Wallpaper\1
find "Tuesday" today.ini && set wallpaperFileName=Week Wallpaper\2
find "Wednesday" today.ini && set wallpaperFileName=Week Wallpaper\3
find "Thursday" today.ini && set wallpaperFileName=Week Wallpaper\4
find "Friday" today.ini && set wallpaperFileName=Week Wallpaper\5
find "Saturday" today.ini && set wallpaperFileName=Week Wallpaper\6
find "Sunday" today.ini && set wallpaperFileName=Week Wallpaper\7
::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::
:: 【Server settings (whether to display special holidays) please set on the server】Do not modify. Otherwise, an error will occur
find "Do not enable" \\10.0.0.247\login$\Bin\Configuration File.ini && goto autoBZ
::::::::::::::::::::::::::::::::::::::::::::::::::
:: 【Special holiday table must be filled here. Otherwise, execute by day of week (holiday format is 00-00 】
find "01-01" today.ini && set wallpaperFileName=Holiday Wallpaper\01
find "03-08" today.ini && set wallpaperFileName=Holiday Wallpaper\38
find "05-01" today.ini && set wallpaperFileName=Holiday Wallpaper\51
find "05-04" today.ini && set wallpaperFileName=Holiday Wallpaper\54
find "06-01" today.ini && set wallpaperFileName=Holiday Wallpaper\61
:::::::::::::::Final executed command::::::::::::::::::::::
:autoBZ
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d \\10.0.0.247\login$\Bin\%wallpaperFileName%.bmp /f
gpupdate /force
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
del today.ini
exit
|
|
2007-5-4 09:47 |
|