SCRNSAVER
— Display or change the screen saver settings.
Syntax:
SCRNSAVER
/A /D /E /N /S /T:
timeout /U
filename
/A | activate (run) the screen saver |
/D | disable the screen saver |
/E | enable the screen saver |
/N | no screen saver |
/S | secure (show login screen when the screen saver is dismissed) |
/T: timeout | idle time before the screen saver is started |
/U | unsecure (no login screen) |
filename | the screen saver filename; must end in .SCR |
If the filename does not have a path, the Windows system directory will be assumed. If it does not have an extension, .SCR will be appended automatically.
The timeout may be specified either in seconds,
or in mm:
ss format (or even
hh:
mm:
ss
for extremely long delays.) /T:300
is the same as /T:5:00
.
The maximum timeout value is 24 hours (86400 seconds).
If /A
is specified, the selected screen saver will be run after
any settings changes.
rem Run "Mystify" after 5 minutes of inactivity:
scrnsaver /e /t:5:00 mystify.scr
See also: the _SSVRNAME
and
_SSVRTIME
variables, which return the
current screen saver filename and timeout respectively.