PDA

View Full Version : I need to set up task to change my Screen Saver (WME)



aspelt
03-03-2002, 10:02 PM
I am trying to come up with a way to automatically change my screen saver using a scheduled task.
I need to be able to change it at a particular time on certain days.
This seems like a simple task to setup, but I can't find anything to to this.
I can export my Screen Saver entry from my registry and import the changed .reg file with the new directory that I want to set it to, but how do I automate this?
Any help I would greatly appreciate.
Thanks,
Susan

scrollLok123
03-04-2002, 02:54 PM
i don't know how to do this with a windows scripting file but i know how to do this with a batch file:

@echo off
c:\
cd c:\
c:\myfolder\scrsaver1.reg -s
cls

where "echo off" hides the process on the screen
c:\ changes the active drive to the C
cd c:\ changes the active dir to the root
next line enters your reg file in silents mode
cls clears the screen

place a group of reg files in a secure folder with and have a set of batch files with names simlar to the reg's execpt with they have a *.bat extention. Create a scheduled task for each of the times you want a change to take place. Batch files are just a txt file with a different extention.

Good luck

PS please reply because i have been wondering where the reg entries were for the background and the screensaver. Thanx alot

SCROLL LOK

aspelt
03-06-2002, 07:51 AM
thanks for your response, this is what I tried:
I ran this to export the screen saver info....
C:\WINDOWS\REGEDIT.EXE /e C:\filename.reg "HKEY_CURRENT_USER\Control Panel\Screen Saver.Slideshow"

Then I set this up in a .bat file and set it up in my task scheduler:
C:\WINDOWS\REGEDIT.EXE /s C:filename.reg

That worked great in my testing until.....
I have multiple users set up on my computer.
The user I wanted the screen saver to re-set on was not the current user logged in when the scheduled task ran. It seemed to have copied all of the logged in users profile to the user I was trying to change the screen saver for.
My .reg file I imported only has what was exported for screen saver.
Anyway, I'm still trying to learn the registry entries.
I ran GOBACK and restored back to a minute before the task ran and everything is back to normal.
I'll try some other ways and let you know if I find something.
Susan

scrollLok123
03-07-2002, 02:00 PM
k susan...your probmem is you are importing and exproting from the wrong hive of keys. You should be merging into the HKEY_USERS not CURRENT_USER the former links into the latter in too many ways to describe here. I would also like to ask the systax of the -e flag for the regedit program...i can use this in scripts. Good luck...

SCROLL LOK