I've built a screen saver in C#. Now I'm trying to load it and make it the
current screen saver. I found the tegistry key that needs to be changed,
but I can't seem to change it via batch file. Can soneone please help me.
Here's what I have so far.
cls
del MBScrnSvr.scr
ren MBScrnSvr.exe MBScrnSvr.scr
IF NOT EXIST c:\Windows\syst em32\MBScrnSvr. scr GOTO INSTALL_SCRNSVR _END
del c:\Windows\syst em32\MBScrnSvr. scr
:INSTALL_SCRNSV R_END
copy MBScrnSvr.scr c:\Windows\syst em32\
REM Key: HKEY_CURRENT_US ER\Control Panel\Desktop\S CRNSAVE.EXE
REM Value:C:\WINDOW S\System32\MBSC RN~1.SCR
REG QUERY RegistryPath ['HKEY_CURRENT_U SER\Control\Pan el\Desktop\
SCRNSAVE.EXE'] [/S] [/size][/list]
REG UPDATE RegistryPath = C:\WINDOWS\Syst em32\MBSCRN~1.S CR
Thanks in advance for any help.
--
Message posted via http://www.dotnetmonster.com