View Single Post
Old 01-07-2008   #3 (permalink)
IT Staff
Guest


 
 

Re: Powergadget : get-content of directory

yes, and i tried the following :

1. i've already created a vertical gauge called "folder.pgt"

2. ps (with powergadget) > out-gauge -template
older.pgt -MainIndicator_Value (dir d:\fac\queue\*.*).count -refresh 0:0:2

I delete some files in my d:\fac\queue, but the gadget did not refresh

Why ?





"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:e4FyDTZUIHA.4092@xxxxxx
Quote:

> IT Staff wrote:
Quote:

>> I have a sub-folder that the application generates tens to hundreds of
>> files for hours.
>>
>> Can powergadget create a *online* gadget the *count* the number of files,
>> at the same time, set max level . Once reach max level, it will send an
>> email to the user ?
>>
>>
>>
>
> I'm not sure I'm exactly following you.
>
> You can use a .ps1 script, and PowerGadgets' -refresh flag to have
> PowerGadgets rerun the .ps1 script. That .ps1 script can pass along the
> value to out-chart to draw the graph, *and* also have the logic to send
> out an email when a value is reached.
>
> Sound like what you want?
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com

My System SpecsSystem Spec