>>I need to cause an external application to quit whenever a given directory is empty. I expect that this should be done with a call to the Win32 API, but how do I do it?
>>
>>TIA
>Hi Mark,
>
>Check the UT Knowledge (FAQs) under Win32 and other APIs. I wrote an article there that describes how to do this.
>
>hth,
There's also an article in there describing the use of TerminateProcess(), a much messier but final method of killing things off...