home *** CD-ROM | disk | FTP | other *** search
- echo off
-
- rem Here is the most trivial screen saver for whatever its worth.
- rem To exit, press any key.
-
- rem If you want to hide the cursor, see the instructions in BLANK.BAT.
-
- rem Not that it is any of my business, but why buy a computer in the
- rem first place if you don't intend to use it all the time. :-)
-
- echo off
- echo ┌───────────────────────────────────────────────────┐
- echo │ Screen blanker with push and popup │
- echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 6-Dec-91 │
- echo └───────────────────────────────────────────────────┘
-
- rem Test whether you have the necessary auxiliary programs available
- rem pushscr.exe and popscr.exe needed here are part of the tsutld18.arc
- rem package (or whatever version number is the latest).
-
- rem If you get an "Out of environment space" message, increase your
- rem environment space by using shell configuration in config.sys:
- rem Example: shell=c:\bin\command.com /e:1024 /p
-
- rem Check that the program pushscr.exe is available
- set _found=
- if exist pushscr.exe set _found=yes
- for %%d in (%path%) do if exist %%d\pushscr.exe set _found=yes
- if "%_found%"=="yes" goto _label1
- echo.
- echo Auxiliary file pushscr.exe must be at path or in the current directory
- goto _out
-
- rem Check that the program popscr.exe is available
- :_label1
- set _found=
- if exist popscr.exe set _found=yes
- for %%d in (%path%) do if exist %%d\popscr.exe set _found=yes
- if "%_found%"=="yes" goto _label2
- echo.
- echo Auxiliary file popscr.exe must be at path or in the current directory
- goto _out
-
- rem Check that the drive for storing the screen is valid.
- rem If it is not then change r:\ to whatever is appropriate for you
- :_label2
- if exist r:\nul goto _label3
- echo.
- echo Device for storing the screen is missing. See the rem comments.
- goto _out
-
- rem Let there be darkness
- :_label3
- pushscr r:\tmp$$$.scn /o
- cls
- pause > nul
- rem Let there be light
- popscr r:\tmp$$$.scn
- del r:\tmp$$$.scn > nul
- :_out
- echo on
-