Article View: news.software.readers
Article #116636Re: [Xnews] .mbx monitor?
From: Ross Presser
Date: Fri, 27 Dec 2002 17:53
Date: Fri, 27 Dec 2002 17:53
42 lines
2840 bytes
2840 bytes
"�����" <�������@�������.���> wrote in
news:Xns92EE94AA29539kanenaspouthena@24.168.128.78:
> While my question is not directly linked towards Xnews, I was
> wondering if anybody familiar enough with Xnews might know what I'm
> asking about. I admit that I'm so lazy, I always archive the smaller
> binaries, JIC I have a use for them down the road.
> The problem is that I need to always glance @ the .mbx files every now
> & then to avoid the dreaded 2GB limit. I was wondering if there's such
> a program (freeware or not) that'll let me do this automatically. I've
> seen a few out there but nothing that will monitor just certain file
> types, like FileMon, etc. Nor have any I've seen also had a "filesize"
> trigger. I'd be willing to try just about anything that would auto-run
> as I've even been looking into vbs, wsh & perl scripts. And still I've
> found nothing that will suit my needs. Perhaps someone here could
> point me in the right direction (besides sourceforge/google) or be
> able to help me with my scripting needs. TIA.
>
--- Vbscript follows ----
' Save this in a file named "CheckMBXSize.vbs". Add a scheduled
' task that runs it as often as you want it to - once a day,
' every 15 minutes, whatever.
' warning threshhold: 1.5 megabytes
Const WarningSize = 1500000
' location of Xnews folders. Change as appropriate
Const MbxFolder = "C:\Program Files\Xnews\Folders"
dim fso, fld, fil
set fso = createobject("Scripting.FileSystemObject")
set fld = fso.GetFolder(MbxFolder)
for each fil in fld.Files
if fso.GetExtensionName(fil.Path) = "mbx" _
and fil.Size > WarningSize then
Wscript.Echo fil.Name & " is getting large." _
& vbCrLf & " Currently " & fil.Size & " bytes."
end if
next
--- End vbscript ----
Technical Details
Message-ID:
<Xns92F183118F6D0pt101594@129.250.170.90>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!HSNX.atgi.net!cyclone-sf.pbi.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3References:
<Xns92EE94AA29539kanenaspouthena@24.168.128.78>Show Full Headers
Complete Article Headers
Message-ID: <Xns92F183118F6D0pt101594@129.250.170.90>
Subject: Re: [Xnews] .mbx monitor?
Date: Fri, 27 Dec 2002 17:53:04 +0000
From: Ross Presser <rpresser@NOSPAM.imtek.com.invalid>
References: <Xns92EE94AA29539kanenaspouthena@24.168.128.78>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!HSNX.atgi.net!cyclone-sf.pbi.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3
Newsgroups: news.software.readers
Organization: http://extra.newsguy.com
Lines: 41
NNTP-Posting-Host: p-337.newsdawg.com
User-Agent: Xnews/5.04.25
X-Face: 8O7ak(Jpl.P<-*gF@wtxQU$Urow``!*}\CL*v'V)Q|;hPih4$:sn0EV%{}0gYp/lbk5-9|]8dAJk.z$nfpI\kk4xwZ^TgfAy<2p@e}Ez4b]jqtr!AZq7-TeefLvdl|t)ZXB,b+!]Y\[LWoqx3J}