home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boot Disc 18
/
boot-disc-1998-02.iso
/
Utils
/
Utility
/
ClckMn95
/
TESTWIN.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-04-16
|
1KB
|
31 lines
REM This file is an example of how to selectively run disk compressions,
REM backups, and other DOS programs that shouldn't be run when Windows
REM is running. If you want to run this, change it appropriately to
REM reflect the DOS apps you want to schedule. Consult your DOS app's
REM manual for instructions on how to run your programs from batch files.
REM - Enjoy!
@echo off
:StartWin
c:
cd \win31 REM Run Windows
win /3
if errorlevel == 99 if not errorlevel 100 goto Compress
if errorlevel == 98 if not errorlevel 99 goto Backup
Echo: Standard Exit Windows Procedure - no return codes processed.
goto end REM If you didn't get 99 or 98 end batch file.
:Compress
smartdrv /C REM Flush SmartDrive
comp.exe REM This is a disk compression (defragging) program
goto StartWin REM Restart Windows
:Backup
smartdrv /C REM Flush SmartDrive
tapeback.exe c: /fo REM Tape backup command line
goto StartWin REM Restart Windows
:end REM End of batch file.