Page 1 of 1

Replace program by batch

Posted: 29 Oct 2010 23:37
by drgt
Current vlc version 1.1.4 leaves screensaver disabled upon exit.
Can I replace it with a batch file where after vlc exit it runs a .reg file to reactivate the screensaver?

Key Name: HKEY_CURRENT_USER\Control Panel\Desktop

Name: ScreenSaveActive
Type: REG_SZ
Data: 0


If yes, does the batch need to be converted to exe?

Will the context menu "Play with" work properly?

Re: Replace program by batch

Posted: 21 Nov 2010 08:36
by Dos_Probie
You could create a .reg file but since we are on DosTips just use the Reg Add Command via commandline
and call it something like DefaultSCR.cmd and save to desktop then when your done with your video
just run it to set your favorite screensaver back as default.I used the bubbles.scr as the screensaver
in the below script file with a variable path (if C: is not your main drive) then substitue any
screensaver of your choice.(And NO the batch does not have to be converted to .exe to work
but If you want to get a pro look then use a batch compiler with a ico file to convert over to .exe)

Hope this helps,
Dos_Probie



@Echo off
Title -Default Screensaver for Windows-
color 06

: Add Registry Entry For Default Screensaver.
REG ADD "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /T REG_SZ /F /D "%systemroot%\system32\Bubbles.SCR"
echo.
echo Press any key to close this screen!&&PAUSE>NUL

Exit
:-=E.O.F=-