vslayer
12-18-05, 06:47 PM
does anyone know the script to set an image as desktop background in a .bat file? im working on a fun little program.
|
|
View Full Version : help with script vslayer 12-18-05, 06:47 PM does anyone know the script to set an image as desktop background in a .bat file? im working on a fun little program. leopold99 12-18-05, 07:29 PM bat files execute dos commands xp doesn't support dos vslayer 12-18-05, 08:48 PM im not quite sure of the specifics of it, but i just add scripts like i would normally put in the run dialogue into a .bat file, and they run fine. i do it all the time. i just need to know what you wolud type in the run box to set something as the background. leopold99 12-18-05, 09:03 PM well i can't help. Voodoo Child 12-18-05, 10:17 PM You would probably have your batch take an argument and use it to set the appropriate registry key using reg add. See REG ADD/? You can find the key by setting your bg to a certain image and searching the registry for it. I'd be careful, though. A simpler way would be to overwrite the bg existing image. This is destructive though and would also break the next time the setting was changed manually. vslayer 12-19-05, 02:42 AM ive got an equally annoying program worked anyway, so i dont really need it now. i unleashed 'lemonparty' onto several computers at a lan this afternoon, by putting it on the autorun of an iso everyone was copying. hehe, it took some of the noobs several nausiating boots before they realised that it had copied files into their startup. Crunchy Cat 12-21-05, 05:13 PM If you ever get the urge for doing it via batch scripting again, rundll32.exe can execute the appropriate function(s) in any stdcall DLL. I am sure the Win32 API provides any number of ways to achive the desired goal. |