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
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
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)
Like this: attrib.exe *.doc +r
You might also wanto to set read only security on the folder they use.