![]() |
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-27 17:17 |
47,813 topics / 349,918 posts / today 0 new / 48,277 members |
| DOS批处理 & 脚本技术(批处理室) » Change desktop background |
| Printable Version 12,540 / 30 |
| Floor16 qq43142691 | Posted 2007-06-17 09:26 |
| 中级用户 Posts 152 Credits 326 | |
| Floor17 coolclack | Posted 2007-06-24 12:17 |
| 新手上路 Posts 8 Credits 18 | |
Originally posted by qq43142691 at 2007-5-4 09:47 AM: Where should this batch file be placed Also, weekly wallpapers |
|
| Floor18 qq8533 | Posted 2007-07-13 23:09 |
| 新手上路 Posts 1 Credits 2 | |
|
: :lol::lol::lol:Thanks
|
|
| Floor19 ndanyyz | Posted 2007-07-14 22:16 |
| 新手上路 Posts 2 Credits 4 | |
|
That's quite interesting. I was looking for exactly this one
|
|
| Floor20 ndanyyz | Posted 2007-07-14 22:45 |
| 新手上路 Posts 2 Credits 4 | |
|
Attachment 1: Microsoft-produced "Desktop Wallpaper Auto-Changer".rar
I'm also looking for it!!! |
|
| Floor21 131200 | Posted 2007-07-27 14:24 |
| 新手上路 Posts 1 Credits 2 | |
| Floor22 lsp15888 | Posted 2007-08-13 10:07 |
| 新手上路 Posts 1 Credits 2 | |
Originally posted by sdzztz at 2007-4-29 09:46 AM: Test completed, wallpaper cannot be changed |
|
| Floor23 qq43142691 | Posted 2007-08-14 01:37 |
| 中级用户 Posts 152 Credits 326 | |
|
This is for autoBZ.bat
The following is configuration_file.ini Attachments QQ截图未命名.jpg (4.21 KiB) |
|
| Floor24 loyalliang | Posted 2008-02-03 00:30 |
| 新手上路 Posts 1 Credits 2 | |
|
:P:P:P:P:P:P:P:P:P:P:P
Top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top |
|
| Floor25 sxk50 | Posted 2008-02-07 14:24 |
| 新手上路 Posts 2 Credits 4 | |
|
@echo off
color 0a title Changing Desktop echo Adding registry items... set regadd=reg add "HKEY_CURRENT_USER\Control Panel\Desktop %regadd%" /v TileWallpaper /d "0" /f %regadd%" /v Wallpaper /d "C:\WINDOWS\Web\Wallpaper\Windows Server 2003.bmp" /f %regadd%" /v WallpaperStyle /d "2" /f echo Changing desktop background RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters PS: Replace "C:\WINDOWS\Web\Wallpaper\Windows Server 2003.bmp" with your file~ Must be in BMP format |
|
| Floor26 edison | Posted 2008-03-23 19:06 |
| 初级用户 Posts 17 Credits 23 | |
|
The settings are too complicated.
It's better to use a third-party software to implement this thing. |
|
| Floor27 i3i4i5 | Posted 2008-03-24 11:27 |
| 新手上路 Posts 7 Credits 16 | |
|
::///////////////////////////////////Desktop
rem Set server image path [folder for BMP images], only BMP format is supported [if the number exceeds 1000, the extra images will not be read by this script] set 图片路径=\\cgo\pic$\1024768 rem Set the path of the local image when the network is unavailable [full path of a single BMP image] set 本地图片=E:\General Tools\web\Civilized City.bmp dir/b/s "%图片路径%\*.bmp" |find /i /n ".bmp" >"bmp.txt" for %%i in (bmp.txt) do if %%~zi EQU 0 goto 更换 for /f "delims=[]" %%i in (bmp.txt) do @set Num1=%%i if %Num1% LSS 10 (Set Num3=1) Else (if %Num1% LSS 100 (Set Num3=2) Else Set Num3=3) :GetRandom call set Num2=%%random:~-%Num3%%% if %Num2% GTR %Num1% goto GetRandom for /f "tokens=* delims=0" %%i in ("%Num2%") do set Num2=%%i if "%Num2%" EQU "" set Num2=%Num1% set bmppath= for /f "tokens=1* delims=[]" %%i in (bmp.txt) do @if /i %%i==%Num2% set bmppath=%%j del bmp.txt :更换 if exist "%bmppath%" copy "%bmppath%" /y "%本地图片%" if exist "%本地图片%" (set bmppath=%本地图片%) else exit @reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v TileWallpaper /d "0" /f>nul @reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d "%bmppath%" /f>nul @reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallpaperStyle /d "2" /f>nul @reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d "%bmppath%" /f>nul @reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ListviewShadow /d "1" /f>nul RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters set bmppath= gpupdate /force exit Try this, but I don't know how to set the server path. It says it needs a shared folder, but it didn't work after several tries If this can't connect to the server, it can take the local image as the desktop background |
|
| Floor28 fgwei | Posted 2008-04-08 09:42 |
| 新手上路 Posts 4 Credits 8 | |
|
That's amazing, this can be done with batch processing. A master at work, truly extraordinary.
|
|
| Floor29 BWSkyer | Posted 2008-04-08 10:27 |
| 中级用户 Posts 180 Credits 367 From 重庆 | |
|
Using VBS seems more intelligent~~~
|
|
| Floor30 tvzml | Posted 2008-04-08 13:16 |
| 初级用户 Posts 67 Credits 157 | |
|
I do need wallpapers from Monday to Sunday.
|
|
| Prev 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |