IPB

Google Frontpage Forums Unattended CD/DVD Guide

> Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules

 
Reply to this topicStart new topic
> Changing Desktop Picture, on the fly!
DJ_Datte
post Aug 6 2005, 05:47 AM
Post #1





Group: Members
Posts: 8
Joined: 18-September 04
Member No.: 31396



*Disclaimer: Dont know if this is the right forum, but the right people should be here smile.gif *

Hello!


I've been on this problem from time to time, and never found a effective solution, so now I am posting here!

Does anyone know of a way to change the desktop picture on the fly with a command-line tool (or a utility that takes configuration options?) It needs to be done quickly, prefferably by executing a command / *.bat file!


The wanted effect:

Executing a utility with a command line / clicking a bat file, and the desktop changes to a new one, thats defined in the file / command line.


Any takers ?

Thankyou !

/Damir
Go to the top of the page
 
+Quote Post
nakira
post Aug 7 2005, 07:10 PM
Post #2


Member
**

Group: Members
Posts: 118
Joined: 18-July 04
Member No.: 24844
Country Flag


Here's a batch script that will change wallpaper.
CODE
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ  /d "F:\Wallpaper\mickey_mouse.bmp" /f
rundll32.exe User32.dll,UpdatePerUserSystemParameters

The limitaion is this will only accept .bmp files, although you could use Irfanview to convert on the fly.
CODE
"C:\Program Files\IrfanView\i_view32.exe" "F:\Wallpaper\Felix.jpg" /convert="F:\Wallpaper\Felix.bmp"
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ  /d "F:\Wallpaper\Felix.bmp" /f
rundll32.exe User32.dll,UpdatePerUserSystemParameters


To save having many files converted to bmp, re-use the same name (no need to alter the registry this time)
CODE
"C:\Program Files\IrfanView\i_view32.exe" "F:\Wallpaper\Betty.png" /convert="F:\Wallpaper\Current.bmp"
rundll32.exe User32.dll,UpdatePerUserSystemParameters



Remeber to change all the paths to suit smile.gif

This post has been edited by nakira: Aug 7 2005, 07:13 PM
Go to the top of the page
 
+Quote Post
Delprat
post Aug 8 2005, 08:02 AM
Post #3


Poll: Why are you reading this ?
****

Group: Members
Posts: 558
Joined: 18-May 05
From: 44"48'N 2"04'W
Member No.: 56544
Country Flag


excellent trick nakira !

I may suggest to use this location for the BMP-converted wallpaper :
C:\Documents and Settings\<your_account_name>\Local Settings\Application Data\Microsoft\Wallpaper<N>.bmp

It's the location Windows puts BMP-converted wallpapers when you use the Display Settings control panel to select a JPG or GIF or PNG, etc.
By default, <N> is 1 (and the file seems to be replaced when you convert a new file), but I suppose it can increase...

bye
Go to the top of the page
 
+Quote Post
nakira
post Aug 8 2005, 09:56 AM
Post #4


Member
**

Group: Members
Posts: 118
Joined: 18-July 04
Member No.: 24844
Country Flag


Yeah smile.gif
Or more precisely "/convert="%UserProfile%\Local Settings\Application Data\Microsoft\Wallpaper1.bmp""
Go to the top of the page
 
+Quote Post
DJ_Datte
post Aug 10 2005, 02:56 PM
Post #5





Group: Members
Posts: 8
Joined: 18-September 04
Member No.: 31396



Thanks!

I will try them right away smile.gif

/Damir
Go to the top of the page
 
+Quote Post
rikgale
post Aug 10 2005, 03:02 PM
Post #6


uA lover
***

Group: Members
Posts: 497
Joined: 1-November 04
From: Taunton, UK
Member No.: 35375
Country Flag


Also checkout a program called WallMast. Look for the free version. I've got my set to load on startup, change the wallpaper and close again. And it takes jpg's whistling.gif

This post has been edited by rikgale: Aug 10 2005, 03:02 PM
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 8th January 2009 - 11:29 PM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy