1. #1
    Unregistered

    What is the procedure to set my screen saver using command-line tool in windows XP professional?

    I am using windows XP professional from last 5years and I want to set screen saver using command line tools show me the procedure to do it.



  2. #2
    tushar Array
    Join Date
    May 2012
    Posts
    117

    Re: What is the procedure to set my screen saver using command-line tool in windows XP professional?

    while windows stores the screensaver configuration in the registry, it doesn't check it for changes constantly.that would be rather inefficient.
    the correct way to change the configuration is using the systemparametersinfo function of win32.For convenience the desktop control panel DLL exports a function that is easily accessed from the command line that will call that function for you.Just run the following command:
    rundll32.exe desk.cpl,installscreensaver file.scr
    that being said, the following command should force windows to reread the configuration from the registry.
    rundll32.exe user32.dll, updateperusersystemparameters
    As an aside you might find it easier to modify the registry from the command line by using the REG command,rather than writing .reg files all the time.

  3. #3
    sandi.jkv Array
    Join Date
    Jun 2012
    Posts
    595

    Re: What is the procedure to set my screen saver using command-line tool in windows XP professional?

    while windows stores the screensaver configuration in the registry, it doesn't check it for changes constantly.The correct way to change the configuration is using the system parameters info function of win32.For convenience the desktop control panel DLL exports a function that is easily accessed from the command line that will call that function for you.
    Just run the following command:

    rundll32.exe desk.cpl,installscreensaver file.scr
    that being said, the following command should force windows to reread the configuration from the registry.
    rundll32.exe user32.dll, updateperusersystemparameters
    As an aside you might find it easier to modify the registry from the command line by using the REG command,rather than writing .reg files all the time.

  4. #4
    firefox Array
    Join Date
    Jun 2012
    Posts
    913

    Re: What is the procedure to set my screen saver using command-line tool in windows XP professional?



    dear friend,

    while windows stores the screensaver configuration in the registry, it doesn't check it for changes constantly.

    open the run tab by pressing windows key+R

    Now type

    rundll32.exe desk.cpl,installscreensaver file.scr

    & run the file.

    the command should force windows to reread the configuration from the registry.

    rundll32.exe user32.dll, updateperusersystemparameters

    As an aside you might find it easier to modify the registry from the command line by using the REG command,rather than writing .reg files all the time.

    good-luck000.gif

  5. #5
    heemanshubhalla Array
    Join Date
    Sep 2012
    Location
    India
    Posts
    570

    Re: What is the procedure to set my screen saver using command-line tool in windows XP professional?

    you can change the settings for the screensaver in Windows XP from the command line by updating the registry as follows:

    * regedit.exe /s settings.reg
    Where settings.reg contains:

    Windows Registry Editor Version 5.00
    here are the commands :-


    1. [HKEY_CURRENT_USER\Control Panel\Desktop]
    2. "ScreenSaveTimeOut"="7200"
    3. "SCRNSAVE.EXE"="C:\\WINDOWS\\system32\\scrnsave.sc r"
    However, the settings do not take effect until I log out and back in. If I change the settings via Display Properties they take effect immediately.

+ Reply to Thread

Similar Threads

  1. How to create a personal screen saver on Windows XP?
    By Unregistered in forum Windows Forum
    Replies: 39
    Last Post: 15-09-2013, 09:05 AM
  2. Steps to change the screen saver set on windows computer?
    By Unregistered in forum Windows Forum
    Replies: 108
    Last Post: 13-09-2013, 02:19 PM
  3. Procedure to disable Windows XP professional logo at startup?
    By Unregistered in forum Windows Forum
    Replies: 25
    Last Post: 14-08-2013, 07:47 PM
  4. Replies: 4
    Last Post: 22-12-2012, 10:45 PM
  5. Replies: 8
    Last Post: 26-10-2012, 01:19 PM