Re: Timestamp monitoring
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Thu, 15 Mar 2007 00:25:21 +1100
"Flo" <florian.puthod@xxxxxxxxx> wrote in message
news:1173877999.851516.77120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 14, 2:17 am, "Pegasus \(MVP\)" <I...@xxxxxxx> wrote:
<florian.put...@xxxxxxxxx> wrote in message
news:1173811870.628446.278880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Are the file names the same or are they unique?
Files would have different names and unique (as randomly generated by
the fax server - but it is not timestamp)
on a simple side I was thinking of list the directory where those
files are stored in order to be processed with a dir /tw then somehow
check the timestamp of the last file and do something is one file has
been sitting here for more than let's say 20 minutes.
You could use the Task Scheduler to run the batch file below
once every 20 minutes. It will delete every file that existed
20 minutes ago.
@echo off
if not exist c:\dir.txt goto :Label1
for /F %%a in (c:\dir.txt) do if exist "%%a" echo del "%%a"
:Label1
dir /b "c:\fax\*.txt" > c:\dir.txt
Remove the word "echo" in Line 3 to activate the batch file.
.
- Follow-Ups:
- Re: Timestamp monitoring
- From: Flo
- Re: Timestamp monitoring
- References:
- Timestamp monitoring
- From: florian . puthod
- Re: Timestamp monitoring
- From: Pegasus \(MVP\)
- Re: Timestamp monitoring
- From: Flo
- Timestamp monitoring
- Prev by Date: Re: Timestamp monitoring
- Next by Date: Re: Timestamp monitoring
- Previous by thread: Re: Timestamp monitoring
- Next by thread: Re: Timestamp monitoring
- Index(es):
Relevant Pages
|