Dec 122017
 
RUNONCE -- a program to support executing programs only on the first computer boot of the day.
File RUNONCE.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
RUNONCE — a program to support executing programs only on the first computer boot of the day.
File Name File Size Zip Size Zip Type
RUNONCE.DOC 1278 562 deflated
RUNONCE.EXE 9072 5501 deflated

Download File RUNONCE.ZIP Here

Contents of the RUNONCE.DOC file


/************************************************************

RUNONCE.EXE -- a program to support executing programs only on the
first computer boot of the day.

RunOnce keeps a data file, RUNDATE.111, containing the date it
was last executed. If the date in the file is other than the current
date, RunOnce writes today's date to the file, and returns an errorlevel
of 0. If the date in the file is today's date, RunOnce leave the
file unaltered and returns an errorlevel of one.

By running RunOnce, and then testing the errorlevel, the autoexec
or any other batch file can branch around programs that only need
to be run once on any given operating day:

runonce
if errorlevel 1 goto DoneBefore
c:\utils\norton\fr c: /save
c:\utils\norton\fr d: /save
:DoneBefore

An environment variable, RUN1DATA, allows the user to specify the
location of the data file. If RUN1DATA isn't found in the
environment, first the current directory and then the path are search to
find the file. RUN1DATA should contain only the path to the file,
with no trailing '\', e.g.,

set run1data=c:\utils

RunOnce returns an error code of 255 for any error.

*************************************************************/


 December 12, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)