Hey Guys

i was wondering if there is anyway to detect when a user has closed an application. i have launched teh app using shellexecute and want to delete the file it opened when the program is closed.