How to govern commands in the collection record in timed intervals

Posted on December 16th, 2010 in Common Technique by admin

Solution:
The resolution for executing a collection record or commands in a collection record might shift depending upon what most appropriate fits your needs.

First solution

In a subsequent example, a collection record is placed in to a double back as well as executes a “dir” authority each twenty seconds. This resolution would be most appropriate for users who need to govern a authority frequently.

:START
REM Execute a MS-DOS dir authority ever twenty seconds.
dir
SLEEP 20
GOTO END

Note: In sequence for a upon top of collection record to run scrupulously you contingency have a nap MS-DOS application upon a computer. This application is not enclosed with any chronicle of MS-DOS or Windows. However, once downloaded will concede your mechanism to nap / check for any specified volume of seconds. See a application download page for a download link.

Second solution

Our subsequent resolution is for users who need to govern a collection record though usually need to govern a authority each couple of hours, days, months, or years. Instead of relying upon a collection record invariably running, you suggest which a user implement a application which will govern a collection record when a date and/or time arrives.

Microsoft Windows NT, 2000, as well as XP users, for example, can operate a AT authority to report timed events by MS-DOS.


Article Source: レジストリクリーナー

Post a comment