DJ_Datte Posted August 6, 2005 Share Posted August 6, 2005 *Disclaimer: Dont know if this is the right forum, but the right people should be here *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 Link to comment Share on other sites More sharing options...
nakira Posted August 8, 2005 Share Posted August 8, 2005 (edited) Here's a batch script that will change wallpaper.reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "F:\Wallpaper\mickey_mouse.bmp" /frundll32.exe User32.dll,UpdatePerUserSystemParametersThe limitaion is this will only accept .bmp files, although you could use Irfanview to convert on the fly."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" /frundll32.exe User32.dll,UpdatePerUserSystemParametersTo save having many files converted to bmp, re-use the same name (no need to alter the registry this time)"C:\Program Files\IrfanView\i_view32.exe" "F:\Wallpaper\Betty.png" /convert="F:\Wallpaper\Current.bmp"rundll32.exe User32.dll,UpdatePerUserSystemParametersRemeber to change all the paths to suit Edited August 8, 2005 by nakira Link to comment Share on other sites More sharing options...
Delprat Posted August 8, 2005 Share Posted August 8, 2005 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>.bmpIt'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 Link to comment Share on other sites More sharing options...
nakira Posted August 8, 2005 Share Posted August 8, 2005 Yeah Or more precisely "/convert="%UserProfile%\Local Settings\Application Data\Microsoft\Wallpaper1.bmp"" Link to comment Share on other sites More sharing options...
DJ_Datte Posted August 10, 2005 Author Share Posted August 10, 2005 Thanks! I will try them right away /Damir Link to comment Share on other sites More sharing options...
rikgale Posted August 10, 2005 Share Posted August 10, 2005 (edited) 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 Edited August 10, 2005 by rikgale Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now