troubleshooting Question

MSWord - File in Use dialog - close with script

Avatar of conrad2010
conrad2010 asked on
C#Microsoft WordVB Script
1 Comment1 Solution451 ViewsLast Modified:
I am working in an environment where hundreds of MS Word documents are processed automatically... every now and then this "File In Use" dialog pops up and all I have to do is hit the "Read Only" button to release this document.

Does anyone has a tip on how to detect if this dialog is up and maybe have a routine to close this dialog? Even if we have to build a Windows Service, or a MS-DOS service with VBScript that detects this dialog every 5 minutes would be great.

I understand I have to look for the owner file (starting with ~$ in the file name) and I understand I can delete that file to release the lock. Just have to figure out on how to click the ok button once that happens.

Screencap attached...
Untitled.jpg
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros