In message <652cca82-44a3-473f-b640- c2336a9cf929 at v15g2000prn.googlegroups.com>, Rajat wrote: > ... my whole idea is to close the wordpad / notepad application so that I > can delete the file and the directory where this file resides. Don't you think the user might have that application open for a reason?