hellswraith: I wonder why I didn't think of that :-D thanks.
DevGrp: I would like to pass sTempFile and pTempProc to the KillFile() function in its own thread. is this possible?