can a .bat file change the desktop wallpaper

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a bat file that when executed will change the wallpaper
of the user immediatly. i have been able to change it is permanently in the
registry but i want to be ble to change it just by executing the bat file.
please help. any ideas would be appreciated.
 
Weell!!

I am a novice at altering the registry, but I have gleaned a few pointers
from sites such as Kelly's

Why not put the appropriate Registry commands in a .reg file. Then if you
execute it (double click) it will update the Registry for you.

Here is a file (ultraedit.reg) I got from who knows where, to add UltraEdit
as a editor for use in IE

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit]
@="UltraEdit"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit\command]
@="C:\\Program Files\\ULTRAEDT\\UEdit32"

It just inserts a registry key. I am sure you could modify it to do what you
want

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
i can edit the registry to change the wallpaper but to make the wall paper
change i have to log off and then log back on and i don't want to have to do
that. i will try tis registry again and tweak it. i just know that someone
out there has to know what the switch is for the bat file to change the
background. there is something that i am missing and i hope i can find it
soon. thanks trevor, its a start!
 
Perhaps there isn't one. I know that cmd language can't. Programs can.

--
----------------------------------------------------------
http://www.microscum.com/mscommunity/
ray buck said:
i can edit the registry to change the wallpaper but to make the wall paper
change i have to log off and then log back on and i don't want to have to do
that. i will try tis registry again and tweak it. i just know that someone
out there has to know what the switch is for the bat file to change the
background. there is something that i am missing and i hope i can find it
soon. thanks trevor, its a start!

Trevor L. said:
Weell!!

I am a novice at altering the registry, but I have gleaned a few pointers
from sites such as Kelly's

Why not put the appropriate Registry commands in a .reg file. Then if you
execute it (double click) it will update the Registry for you.

Here is a file (ultraedit.reg) I got from who knows where, to add UltraEdit
as a editor for use in IE

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit]
@="UltraEdit"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit\command]
@="C:\\Program Files\\ULTRAEDT\\UEdit32"

It just inserts a registry key. I am sure you could modify it to do what you
want

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
Place the following in a .bat file and run it logged into the profile you
want the wallpaper changed.

REG ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d
C:\Windows\NameOfWallpaper.bmp /f

Change the "NameOfWallpaper" to the name of the bmp file you want to change
to without quotes. Make sure of course it is at the location specified.

Sumladar

"David Candy" wrote:
Perhaps there isn't one. I know that cmd language can't. Programs can.

--
----------------------------------------------------------
http://www.microscum.com/mscommunity/
ray buck said:
i can edit the registry to change the wallpaper but to make the wall paper
change i have to log off and then log back on and i don't want to have to do
that. i will try tis registry again and tweak it. i just know that someone
out there has to know what the switch is for the bat file to change the
background. there is something that i am missing and i hope i can find it
soon. thanks trevor, its a start!

Trevor L. said:
Weell!!

I am a novice at altering the registry, but I have gleaned a few pointers
from sites such as Kelly's

Why not put the appropriate Registry commands in a .reg file. Then if you
execute it (double click) it will update the Registry for you.

Here is a file (ultraedit.reg) I got from who knows where, to add UltraEdit
as a editor for use in IE

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit]
@="UltraEdit"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit\command]
@="C:\\Program Files\\ULTRAEDT\\UEdit32"

It just inserts a registry key. I am sure you could modify it to do what you
want

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
That doesn't change it. It changes the registry entry. Which means it won't work to next logon. Your key may or may not be the entry that specifies the wallpaper (there are two sets of wallpaper settings).

Also settings like this may be temporary or permanent. There are memory settings and registry settings.

If you read the reply I replied to you'll see why the user won't find your suggestion useful.

--
----------------------------------------------------------
http://www.microscum.com/mscommunity/
Sumladar said:
Place the following in a .bat file and run it logged into the profile you
want the wallpaper changed.

REG ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d
C:\Windows\NameOfWallpaper.bmp /f

Change the "NameOfWallpaper" to the name of the bmp file you want to change
to without quotes. Make sure of course it is at the location specified.

Sumladar

"David Candy" wrote:
Perhaps there isn't one. I know that cmd language can't. Programs can.

--
----------------------------------------------------------
http://www.microscum.com/mscommunity/
ray buck said:
i can edit the registry to change the wallpaper but to make the wall paper
change i have to log off and then log back on and i don't want to have to do
that. i will try tis registry again and tweak it. i just know that someone
out there has to know what the switch is for the bat file to change the
background. there is something that i am missing and i hope i can find it
soon. thanks trevor, its a start!

:

Weell!!

I am a novice at altering the registry, but I have gleaned a few pointers
from sites such as Kelly's

Why not put the appropriate Registry commands in a .reg file. Then if you
execute it (double click) it will update the Registry for you.

Here is a file (ultraedit.reg) I got from who knows where, to add UltraEdit
as a editor for use in IE

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit]
@="UltraEdit"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\UltraEdit\command]
@="C:\\Program Files\\ULTRAEDT\\UEdit32"

It just inserts a registry key. I am sure you could modify it to do what you
want

--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
Back
Top