Link to home
Start Free TrialLog in
Avatar of chrisryan43
chrisryan43Flag 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
Avatar of Tony Giangreco
Tony Giangreco
Flag of United States of America image

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.
Avatar of 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.
Avatar of 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
How about going into the NTFS permisions and set all users to read only for those files?
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
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial