#136841 - 2005-03-31 07:13 AM
Re: Check Date in Text File
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11631
Loc: CA
|
Here is an example of reading the date from the .ini file and acting on it. Give this a try and let us know how it goes please.
Example Output
Applications script last ran on 2005/03/05 which was 25 days ago It is now time to run the Applications script again
The Hardware script does not need to be run at this time.
Security script last ran on 2005/03/15 which was 15 days ago It is now time to run the Security script again
Software script last ran on 2005/03/08 which was 22 days ago It is now time to run the Software script again
Here is the contents of the test file lastrun.ini
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 764 anonymous users online.
|
|
|