--- In [email protected], "trepidi" <joshua.ja...@...> wrote:
>
> I am running ppro under Vista.  I want to run a simple script only on the 
> condition that a folder contains one or more files.  How can that be done?
>

; File.AllFiles("c:/windows","","") counts the files in the windows folder.

cnt=File.AllFiles("c:/windows","","") 
if (cnt>0) do
your code here
else
quit
endif

if you want to work with the files in the folder file.listfiles 
with a vector is a great command.  
It's help is just beneath file.allfiles

Look under help file plugin for more info 
and vectors help for using those.


Reply via email to