hey all,

im trying to write a perl program that will change the desktop background. I dont have much (read: any) background in working with windows environment variables, and am hoping that desktop image location is in fact one of these variables.

any advice on how to reference and edit these variables would be appreciated.

TIA
mukul

edit: this is in windows XP

Recommended Answers

All 2 Replies

Hi

You can do this with in Perl with Win32::API or with Win32::OLE using the object wscript!

Using Win32::OLE will allow you to change the background image without the need to a shut down! Win32::API will also allow for this, but unless you import 'Kernel32.dll' into your API, you will have to reboot for desktop image changes!

J!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.