In September of last year, I wrote How Can I Unlock a Read-Only File, Edit it, and Make it Read-Only Again? In that post, which was awesome, I worked specifically with the read-only attribute. Scripto at the waterfront to work on his tan (he really needs to get out more), and I will tackle your question. Scripto decided to head down to the harbor to watch the boats coming in and out.ĪD, I will leave Dr. Today, it is 71 degrees Fahrenheit (21.6 degrees Celsius according to my conversion module), and it is sunny. One of the cool things about being in Florida during the winter is actually a warm thing. It seems like it should be simple to have a Set-FileAttribute Windows PowerShell cmdlet, but unfortunately it does not seem to exist. I have an old VBScript script that will manipulate file attributes, but I am surprised that Windows PowerShell does not do this. Our backup program reads the archive flag, and our users are always creating read-only copies of their spreadsheets. Hey, Scripting Guy! I often find myself working with file attributes. Summary: Learn how to use the Windows PowerShell cmdlet Set-ItemProperty to work with file attributes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |