> I wanna to write a script and it will be run when the folder size is
> below the defined size value.

You wanna read Help, Index, "file plugin".


Make a new command list called "monitor"

Make an item with command: .monitorscript

;;-------- \powerpro\scripts\monitorscript.powerpro -----

local zTotal
file.allfiles("c:\folder","zTotal = zTotal + file.size(_file_)")
If(zTotal < 34567)do
.myscript
endif
quit

;;-------------------------------------------

In the "Command Lists" dialog, click Setup,
in the "Special Lists" tab, check "Run monitor list each second".

If you want to count the total including files in subfolders,
change it to:

file.allfiles("c:\folder","zTotal = zTotal + file.size(_file_)","","1")


Note: it will make your computer slower
checking the size of a folder every second.



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to