Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: .bat file to save and close all open Words docs, then quit Word

19 Aug 2014   #1
JayUSA

Win 7 Pro
 
 
.bat file to save and close all open Words docs, then quit Word

Hello Everyone,

I'd like to write a .bat file that will save and close all open Word documents, then quit Word or terminate the Word process.

How in the world would I do that? I'm a complete novice at .bat files!

Also, could the .bat file be triggered only after Word has been unused/idle for a specified time?

I look forward to your responses!

Jay


My System SpecsSystem Spec
.
20 Aug 2014   #2
JDobbsy1987

Windows 8.1 Pro x64
 
 

Hi,

Killing the word process wouldn't be too difficult but that would be on a schedule rather than x amount of idle minutes.
I don't believe a .bat file would be able to save any open workbooks though.

Are you able to provide some background on why this is needed and maybe there is an alternate method?

Regards,
Jamie
My System SpecsSystem Spec
Reply

 .bat file to save and close all open Words docs, then quit Word




Thread Tools




Similar help and support threads
Thread Forum
Outlook/Word 2013 - Cannot open ANY docs due to Protected View
All, After using Office 2013 for the better part of two years - today I go to do a Quick Print (to my PDF Printer) on a Word attachment within a Outlook email and get this annoying message: Office has detected a problem with this file. To help protect your computer - this file cannot be...
Microsoft Office
How can I close a file that is open in another program ?
Iwant to delete a file. I am logged on as Administrator, have taken ownership, have Effective Permission to perform a deletion, but I am unable to delete a file because it is being used by another program. :( I performed a Safe Mode boot; tried to delete it and still it was being used by...
Software
Can't save docs that are Word 2007 after downloading 2010-HELP!!
I've just downloaded Student and Home Office 2010, and for some reason I now cannot open documnents that are Word 2007. I also cannot save work onto my memory stick, as for some reason, it saves the document as Word 2007, even though I am doing the work on Word 2010! (I only ever had a trial...
Performance & Maintenance
Google Docs/Word 2007 Lost File
Hi, I have been working on a school report for the past few days on Google Docs (so I could access it from home and school). Now that I am done modifying the document at school, I exported the file as a Word document. In my stupidity, I clicked 'Open' instead of 'Save' when downloading the file,...
Microsoft Office
Presaved Chinese docs/srt won't open in Word/Notepad
Hello, This problem started recently, and I don't know what changed. For some reason Wordpad and/or Notepad have quit displaying Chinese characters in .srt files. I also have some documents that were written in Chinese, and those are no longer displayed if I open them in Wordpad or Notepad. ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:21.
Twitter Facebook Google+