Close an open PDF file

Hi Experts,
  Hopefully someone has run into this one before.  I have a VB.NET process that sometimes requires an existing PDF to be deleted.  Several files may be open at one time.  For example, say I have File1.pdf, File2.pdf, and File3.pdf all open.  During execution of my application, I get to a point where File3.pdf needs to be deleted.  If I try to do this while it's open, it obviously will error.  My question:  How do I check to see if File3.pdf is open and, if it is, how to I close it?

Thanks Experts!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I think you could cycle through all the open windows and close the one appropriate to the file that you want. This however would be dependant on Acrobat having something in the windows titlebar that is recognisable.

I am going to dig through some old code to see what I can find.

Try deleting it. if you are unable to delete and get an access exception, then it means it is open.
Now if you are sure that it is open in Adobe Accrobat, do something like in this post to get the process and send the Close keys like Alt- F4
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Are you using a Acrobat reader?
RenAuthor Commented:
Since I can tell if it is open or not, I think I will just ask the user to close the open pdf file.  That way, if they had it open to make changes, they will have the opportunity to save it as a different name or whatever they would like to do.

Thanks for the suggestions.
Closed, 300 points refunded.

Community Support Moderator
Experts Exchange

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.