Avatar of chrisryan43
chrisryan43
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Word 2010 Recommend Read Only Batch file

Does anybody have any suggestions on how to write a batch file which will scan all the files on a drive and convert them so that when they are opened up Word suggests that it's opened read-only (this option is under Save As->Tools->General Options
Microsoft WordWindows Batch

Avatar of undefined
Last Comment
GrahamSkan

8/22/2022 - Mon
Tony Giangreco

All you probably need to do is execute the atrrib.exe file for all documents and set the read-only attribute.

Like this: attrib.exe *.doc +r

You might also wanto to set read only security on the folder they use.
GrahamSkan

I don't know about a batch file, but it would be possible with a Word macro or, slightly more difficult, with a VBScript.
chrisryan43

ASKER
Unfortunately i don't want to set the read only attribute on the file. I would like to set the flag which means Word suggests opening it ready only. I think a Word macro might be the only way but could be very fiddly

Many thanks
Chris
Your help has saved me hundreds of hours of internet surfing.
fblack61
Tony Giangreco

How about going into the NTFS permisions and set all users to read only for those files?
chrisryan43

ASKER
I still want the users to be able to get write access should they need it but i just want the prompt window to come up when the file is opened to recommend read only (which is an option within Word)
ASKER CERTIFIED SOLUTION
GrahamSkan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.