Hai
why i am asking this question ,i want delete all file in a specific folder(Temp),in that all files are pdf file ,that file are download form sql server and save in Temp folder and open in pdf viewer.After i see pdf file i close the application(Windows application in vb.net),I WANT TO DELETE ALL FILES IN TEMP FOLDER BEFORE CLOSE THE APPLICATION.If pdf file open in pdf viewer i cant delete file form Temp folder and it show error like "File cannot be delete,because it used by another application " something like this....
If file not open in viewer i can delete Temp folder but if file open in viewer i can't delete folder
pls reply asap