Cleanwork can be scheduled
to run automatically at a specific time with any of the options specified
in the arguments section. Follow these instructions to schedule Cleanwork
from the Microsoft Task Scheduler:
-
Schedule cleanwork to
run with the desired options. Refer to the arguments section for the
options descriptions.
-
Select Start and
type Task Scheduler.
-
Select Create
Basic Task from the Actions window.
-
Enter a name and select Next.
-
Select the frequency
and then select Next.
-
Select a starting date
and time and then select Next.
-
Select Start
a Program and then select Next.
-
Enter the location of
cleanwork.exe.
-
Enter the options (for
example, /v volume) in the Add arguments field.
-
Select Next and
then Finish.
-
Right-click on the new
task and then select Properties.
-
Select the Change
User or Group button, in the Security options box.
-
Enter SYSTEM in
the Enter the object name to select window,
and then select Check Names. If you do not
set user account as SYSTEM, then the taskeng.exe window
is displayed. If SYSTEM is set, then the taskeng.exe window is not
displayed.
-
Repeat step 1 to create
another configuration for the same program. For example, the user
might want to scan the volume once a week, but wants to clean the
logs every day or the opposite process. This step is optional.
-
Create a batch script
with the cleanwork.exe path and output–redirection options,
if you want to review the output at a later date. This action is a
Windows Task Scheduler requirement. For example, create a cleanwork.bat
script with the following command:cleanwork.exe /v c:
/verbose >c:\temp\cleanwork.log
This step is optional.