S
Tue Jun 19 11:51:06 CDT 2007
and if its not locked, opening it for writing will immediately wipe it out!
bad idea...
"mr_unreliable" <kindlyReplyToNewsgroup@notmail.com> wrote in message
news:ObrcIQdsHHA.1212@TK2MSFTNGP05.phx.gbl...
> Penelope, you can probably get what you want from the wsh
> file system object (fso).
>
> Try attaching the file for writing. If you get an error,
> it is most likely locked.
>
> The DateLastModified property of the file object will tell
> you when the file was written, and the size property of
> the file object will tell you the size (gasp!).
>
> You can generate an eMail message (to yourself?) using
> the CDO object. There are several examples in this ng
> of how to do this. Use google advanced group search to
> find them.
>
>
http://groups.google.com/advanced_group_search
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? WE GOT ANSWERS!!! ..(but,
> no guarantee the answers will be applicable to the questions)
>
>
> Penelope Baker wrote:
>> i would think this is like...the wheel. but i can't find anything, and
>> i'm not a coder.
>>
>> i just need a tiny script i can run with task scheduler that will check
>> to make sure that:
>>
>> 1. a file was written in the last 24 hours
>> 2. it's not locked for writing
>> 3. it's larger than zero
>>
>> email to a specified address if any of the above fail with the message
>> 'Backup service is hung, and the bloody bugger won't email of it's own
>> volition when it does that.' Or something of that ilk anyway.
>>
>> :P
>>
>> can anyone point me in the right direction, or help a girl out?
>>
>> Thanks!
>>
>> peace,
>> pen
>> ---
>> Life is short.
>> Break the rules.
>> Run towards your fears.
>> Forgive quickly.
>> Love truly.
>> Laugh uncontrollably.
>> Kiss slowly.
>> Above all, never regret anything that made you smile.
>
> Spoken like a true disciple of the Haight.