Manage to get it work ...called it folder.ps1
(get-childitem z:\facsys\queue).count | out-gauge folder.pgt -refresh 0:0:1
1. my folder z:\facsys\queue currently contains greater 13000 files and will
generate more. When i 1st run folder.ps1, it takes some time to *take in*
data ...is there a *faster* command to substitute the get-childitem command
2. How can i put a text label machine name *into* my gauge ?
3. How can i make the chart display a *exact* number of files on the screen
via tooltip ? Currently the gauge shows an estimate value
"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> IT Staff wrote:
>> yes, and i tried the following :
>> 1. i've already created a vertical gauge called "folder.pgt"
>> 2. ps (with powergadget) > out-gauge -template
>> lder.pgt -MainIndicator_Value (dir d:\fac\queue\*.*).count -refresh
>> I delete some files in my d:\fac\queue, but the gadget did not refresh
>> Why ?
> That's not how refresh works. PowerGadgets will not recaculate the count
> at the 20s refresh like you have the command written out above.
> Post the code for folder.pgt, and tells us exactly what you're looking