System Agent is a Win32-based application for scheduling programs to run at times you specify. After it is installed and configured on a computer, System Agent periodically runs programs according to your preferences. System Agent supports options for specifying when Compression Agent, Disk Defragmenter, ScanDisk, and other programs will run, and it provides notification of exceptional conditions such as low disk space.
Programs can be scheduled to run based on several criteria, such as the exact time and date, or a range of times, or whether the computer is idle or is running on batteries.
System Agent consists of two parts, a scheduling engine (SAGE.EXE) and a separate application (SYSAGENT.EXE) for displaying and modifying the list of scheduled programs. The list of scheduled programs for System Agent is stored in the SAGE.DAT file, which is placed by default on the user's computer in the SYSTEM subdirectory of the folder where Microsoft Plus! is installed. However, this file can also be stored in a network directory. The ConfigPath value in the following Registry key defines the location of SAGE.DAT:
Hkey_Local_Machine\Software\Microsoft\Plus!\System Agent
The System Agent scheduling engine is a system service that runs continuously, monitoring the system and starting programs according to a database that contains the schedule you define for programs to be run. The only way you can interact with SAGE.EXE is by using the System Agent application.
The scheduling service starts automatically when the computer starts because its Setup program adds sage.exe as a value under the following Registry key:
Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Run
You can quit SAGE.EXE if required — for example, if a setup program such as Windows 95 Setup prompts you to quit all applications before running — by choosing a command in the System Agent application.
Note Removing the System Agent scheduling engine in this way completely removes both SAGE.EXE and SYSAGENT.EXE from memory and from the Registry. Consequently, System Agent will not start automatically, and scheduled programs will not be run.
To restore System Agent as an automatic service, run the System Agent application, and answer Yes when prompted to start SAGE.EXE.
System Agent also notifies you when the following events occur:
Note When Microsoft Plus! is installed, the ScanDisk and Defrag tools are enhanced to support DriveSpace 3 compression.
Upgrade notification (UPGRDALM.EXE) is scheduled to run when the computer first starts after Microsoft Plus! Setup. If there are no compressed drives to be upgraded, this notification is removed from the System Agent schedule and never runs again. If you choose to upgrade, the notification runs DriveSpace 3, and then removes itself from the System Agent schedule when it has confirmed that the drives have been upgraded or compressed.
Note
The Upgrade notification runs by default at system startup although it doesn't appear in the list of programs scheduled in System Agent. For the Upgrade notification to appear in System Agent, change the ShowSystemTasks string value to 1 in the following Registry key:
Hkey_Current_User\Software\Microsoft\Plus!\System Agent
In addition to the disk utilities such as ScanDisk or Compression Agent that can be scheduled to run with System Agent, you can use System Agent to schedule any kind of program that you want to run at a particular time or periodically. For example, you might use System Agent to do the following:
The methods you use for scheduling and running a program depend on whether the application was designed to work with System Agent.
If the program is designed to run with System Agent, you can use the Settings dialog box in System Agent to choose options to use when running the program. For example, you might designate that ScanDisk run a standard test nightly, but run a thorough test once a month. A System Agent-aware program might offer additional options to choose for running the program.
For all types of programs, you can define a command line for running the program. This command line can be one of the following:
The general process for scheduling a program to run in System Agent includes the following basic steps:
This is where you can specify the command-line switches or a batch file to run (for a program that is not System Agent-aware).