View Single Post
  #2 (permalink)  
Old 11-30-2008, 4:53 PM
Renee08 Renee08 is offline
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Nov 2008
Posts: 2
Reputation: 0
Renee08 is on a distinguished programming path ahead
Default

With a bit of help I've found an answer:

If IO.Path.GetExtension(strTemplateFilename) = ".dotx" Or IO.Path.GetExtension(strTemplateFilename) = ".dotm" Then
IO.File.SetAttributes(strTemplateFilename, IO.FileAttributes.ReadOnly)
End If

It seems very obvious now!
Reply With Quote