in reply to Directory Questions - How would I do this?

The part I don't know how to do is have another program monitor that folder where the new files are created.

Why not have the program that creates the file do the emailing? Or if you think that will take longer than the 30 seconds that it would normally sleep for, have it create the file and then run (detach) the program that will do the emailing.

That way, the email program doesn't have to sit and poll a directory, it just gets run when required, with the name of the file to email being passed as a parameter.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re: Directory Questions - How would I do this?