From: johnwfa@comcast.net   
      
   On Fri, 29 Nov 2013 11:21:11 -0000, "Tim Meddick"    
   wrote:   
      
   >Yes, there is: I'm not sure if you're using WinXp [Home] or [Pro] - or if   
   >[Home] has the command-line utility: [reg.exe] - but, in either case, my   
   >second batch file example will work anyway, with the addition of a reg-file   
   >[*.reg]   
   >   
   >   
   >1).   
   >   
   >@echo off   
   >reg ADD "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /d   
   >"drive:\path\mysaver.scr" /f   
   >reg ADD "HKCU\Control Panel\Desktop" /v ScreenSaveActive /d 1 /f   
   >   
   >2).   
   >   
   >@echo off   
   >regedit.exe /s drive:\path\myregfile.reg   
   >   
   >   
   > ....for the second example, you need a registry file [myregfile.reg] as   
   >below;   
   >   
   >   
   >Windows Registry Editor Version 5.00   
   >   
   >[HKEY_CURRENT_USER\Control Panel\Desktop]   
   >"ScreenSaveActive"="0"   
   >"SCRNSAVE.EXE"="C:\\WINDOWS\\system32\\SSTARS2.SCR"   
   >   
   >   
   >If you have any queries about the solution[s] I've given, please post back,   
   >and I'll try my best to talk you through them.....   
   >   
   >==   
   >   
   >Cheers, Tim Meddick, Peckham, London. :-)   
   >   
   >   
   >   
   >   
   >"JohnW-Mpls" wrote in message   
   >news:tqkf99563qkpabt00tqcvups5moge6h8jr@4ax.com...   
   >>   
   >> Using a batch file in Win XP, is there a way to change the choice of   
   >> screen   
   >> savers in the Control Panel's "Display"?   
   >>   
   >>   
   >> --   
   >> JohnW-MN   
      
      
   Ah Ha! The Registry! Makes sense and explains why I could not find my   
   answer in regular files and directories.   
      
   I have used regedit manually for some very simple things. I would like to   
   do some experimenting with the examples you gave but the registry can be   
   very unforgiving. Best I first get out my book on the XP Registry and do   
   some serious studying.   
      
   I think I'll tackle this in two steps; first manually make registry changes   
   that do what I want and then create batch files to automate the changes.   
      
      
   --   
    JohnW-MN   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|