Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2022, 12:38 PM
Mark_ITH Mark_ITH is offline Word VBA script for reading only causes writes to SSD Windows 11 Word VBA script for reading only causes writes to SSD Office 2021
Novice
Word VBA script for reading only causes writes to SSD
 
Join Date: Dec 2022
Posts: 2
Mark_ITH is on a distinguished road
Default Word VBA script for reading only causes writes to SSD

So I have a script that is used to open word documents as read only and when the script runs, Word is creating/editing files in two specific folders as identified by resmon.

These folders are:

Code:
....\AppData\Local\Microsoft\Windows\INetCache\Content.Word

....\AppData\Local\Microsoft\Office\16.0\UsageMetricsStore\FileActivityStore\Word
This isn't a huge problem but it is shortening the life of my SSD as I am read 100,000+ files. In just 3 days, the SSD life has shortened by 5%. I have over 1M documents to scan so this could total trash my SSD very quickly. In the last day, I ran a monitor and it shows over 700 GB of writing by WINWORD.EXE even though I am not saving any of the documents. This is only the data written in the above two folders and mostly the second folder.



Just wondering if there is a setting that I can use to prevent this. Thanks
Reply With Quote
  #2  
Old 12-21-2022, 03:24 PM
macropod's Avatar
macropod macropod is offline Word VBA script for reading only causes writes to SSD Windows 10 Word VBA script for reading only causes writes to SSD Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Cross-posted at: Word VBA script for reading only causes writes to SSD | MS Answers
For cross-posting etiquette, please read: A message to forum cross posters - Excelguru
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-21-2022, 03:59 PM
Guessed's Avatar
Guessed Guessed is offline Word VBA script for reading only causes writes to SSD Windows 10 Word VBA script for reading only causes writes to SSD Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

This is the first time I've ever seen this type of question so I've never considered it before. I'm also not sophisticated enough to run monitors on exe activities so you are way more advanced than me and I'll just ask a couple of questions that might lead you to a solution.

Do the temp files also get created if you open in READ mode but close without saving? I expect it just changes 'where' the temp file is created since you would get a ~temp file in the same directory as the document.

Can you change the script to read the xml contents of the docx zip file without using Word to open the file first?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #4  
Old 12-22-2022, 02:52 PM
Mark_ITH Mark_ITH is offline Word VBA script for reading only causes writes to SSD Windows 11 Word VBA script for reading only causes writes to SSD Office 2021
Novice
Word VBA script for reading only causes writes to SSD
 
Join Date: Dec 2022
Posts: 2
Mark_ITH is on a distinguished road
Default

I am opening the file as read only (never write) but the temp files are always created.

It might be possible to read the file with filestream but I am also using some of the Word APIs so that would not work for me.

I have been able to minimize the amount of writes with the above procedures so I think I am good for now but MS should really be cognizant of how much disk activity their software generates.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word VBA script for reading only causes writes to SSD Form updating Bookmarks - writes to the bookmarks multiple times PeterPlys Word VBA 13 01-14-2015 06:41 AM
Word VBA script for reading only causes writes to SSD How to save a PPT file in 'Reading View' to be opened always in 'Reading View' ItzVickey PowerPoint 2 08-08-2012 09:23 AM
Word VBA script for reading only causes writes to SSD Word only writes top half of input in form Chippychap Word 8 07-20-2012 12:49 AM
Word VBA script for reading only causes writes to SSD Reading .odt files in Word 2003 Shuggie Word 4 06-24-2012 03:10 AM
Need help reading MS Word 2007 docx in MS Word 2003 gngracie Word 0 09-20-2010 01:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft