Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
drgt
- Posts: 160
- Joined: 21 Sep 2010 02:22
- Location: Greece
#1
Post
by drgt » 29 Oct 2010 23:37
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?
-
Dos_Probie
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
#2
Post
by Dos_Probie » 21 Nov 2010 08:36
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=-