Title: Message
do a search on archive.serversalive.com
 
with values file & date
 
I have an exe file which in conjunction with a simple batch script will check a defined directory for the existence of a file with a created date of today (not a specific file)
 
I got this written in house for me to check that a specific directory contained a backup file with a modified date of today.  That way I know that an automated backup script has run and "a" file exists (since the filename includes the current date in the name, so the file name changes daily.  it returns a value of 0 if a file exists and 1 if a file does not exist, and to alert me if the returned value is 1.
 
I schedule this check to occur between 9am and 3pm, I guess you could schedule this to occur on only one day also?
 
It checks "all" files within the specified directory, so this may not be exactly what you're after
 
If the directory you are checking contains multiple files which may have been modified / created today, its probably not going to do what you want.
 
Peter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Passow
Sent: Tuesday, 10 May 2005 6:14 PM
To: [email protected]
Subject: Re: [SA-list] File Time

Ont he sixth someone wrote the list letting them know they had a com check to do just that.  I had written my own little VB app to do the same and return an error level but the tim eis hardcoded.  Search the archives for File DateTime COM.

Jeff Brownlee wrote:

Does anybody have (or know of) a check (probably external) that will tell me if a file hasn't been modified in a certain amount of time?

I have a file that should be updated weekly, and I need to know if the process didn't run.

Thanks

-Jeff


-- 
Jason Passow
Mississippi Welders Supply
[EMAIL PROTECTED]
ph: (507) 454-5231
fax: (507) 454-8104
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive

Reply via email to