[help] cmd/batch scripting(wallpaper, pause for process)

i was wondering if there is a way to have a batch file change the desktop wallpaper?

im trying to make the wallpaper black or white when the batch file is executed.

also is there a way to make the batch file pause till a certain process ends then resume?

currenty im using the pause command but that requires interaction with the user.

i was looking through http://www.ss64.com/nt/ but i couldn't figure it out..

maybe what im trying to do is impossible?? but since i wasn't sure i thought id ask.

#253114

To update wallpaper instantly, you need to use the SystemParameterInfo API (localized in user32.dll) like this :

SystemParametersInfo(20, 0, "your_bmp_wall", 0x1 | 0x2 )

But I think you can't call Win32 API from a batch file ; you'll probably have to write a small script in a language thats supports APi call.

#253162

well looking for a program that will set the wallpaper to black/white color

i was told of a reg file and batch command solution

the reg file sets the wall paper to none. but i can't get the display to refresh i found this command

rundll32 user,RepaintScreen

to refresh the desktop but it doesn't work in winxp sp2 is there a command that will work with winxp sp2 to refresh the desktop??

or a program that will refresh the desktop???

#253985