This is probably simple, but a quick search didn't produce anything.
How do I programmatically set a file to be read only?
Printable View
This is probably simple, but a quick search didn't produce anything.
How do I programmatically set a file to be read only?
I think this would do:
didnt test it, but I think that's how it should be:DVB Code:
Dim fi As New FileInfo("C:\test.jpg") fi.Attributes = FileAttributes.ReadOnly Or fi.Attributes
Yep, I figured that out after I posted, but didn't have the time to come back and tell anyone. Thanks.