Re: Desktop Background from dos

R

Ramesh, MS-MVP

Use the REG.EXE to change the Wallpaper in the registry, pointing to a BMP
file.

Example:
[HKEY_CURRENT_USER\Control Panel\Desktop]
Wallpaper = "C:\Win.bmp"

Then, execute this command to refresh the views.

rundll32.exe user32.dll,UpdatePerUserSystemParameters
(Tip from Torgeir Bakken)
 
G

Guest

I Executed the Reg.EXE File and I Don't Know what command to type the example
in under.

Ramesh said:
Use the REG.EXE to change the Wallpaper in the registry, pointing to a BMP
file.

Example:
[HKEY_CURRENT_USER\Control Panel\Desktop]
Wallpaper = "C:\Win.bmp"

Then, execute this command to refresh the views.

rundll32.exe user32.dll,UpdatePerUserSystemParameters
(Tip from Torgeir Bakken)

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Black Shadow said:
Is there a way to change the desktop background from the command prompt?
 
G

Guest

Was I suppose to put it in a reg file and then put in the example? That is
what I Just did and I made the win.bmp file then executed the file and it
said it added it to the registry but nothing happened
 
R

Ramesh, MS-MVP

Hi Black,

Examples:

REG.EXE /ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_EXPAND_SZ /d
"%Systemroot%\XP.bmp"
REG.EXE /ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d
"C:\WindowsXP.bmp"
 
R

Ramesh, MS-MVP

Correction:

REG ADD "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_EXPAND_SZ /d
"%Systemroot%\XP.bmp"

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

Then, use "rundll32.exe user32.dll,UpdatePerUserSystemParameters" to refresh
the Desktop.
 
R

Ramesh, MS-MVP

Type in Command Prompt or execute from a Batch file.

Also for the REG.EXE, use the "/f" parameter to turn off the Prompt.
 
G

Guest

When I type rundll32.exe in the prompt nothing happens. When I type
user32.dll it asks me what program I want to open it with.
 
R

Ramesh, MS-MVP

Please read my post again. You should type the command-line exactly as given
(and it's case-sensitive)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top