![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | File attributes (getting/setting) and ownername Hey all, anyone got any examples or code that shows how to get and set the attributes of a file ? What I want to accomplish is running through a file/folder structure, and for each file that has is e.g. read only, I want to remove the read only attribute. As a bonus... how do you get the owner name of the file, and possibly set the ownername to somenone else ? Thanks in advance, hope someone has the answer ![]() -- Best Regards, Jacob Saaby Nielsen http://www.ijacob.info gmail: jacob DOT saaby hotmail (IM/LinkedIN/Facebook): same as gmail |
My System Specs![]() |
| | #2 (permalink) |
| | Re: File attributes (getting/setting) and ownername Hey Shay, thanks - you're a lifesaver. I'll give them a look and see if I can put them to good use ![]() Best Regards, Jacob Saaby Nielsen http://www.ijacob.info gmail: jacob DOT saaby hotmail (IM/LinkedIN/Facebook): same as gmail Quote: > Get and Set file owner: > http://www.microsoft.com/technet/scr...qanda/apr08/he > y0415.mspx > --- > Shay Levi > $cript Fanatic > http://scriptolog.blogspot.com Quote: >> http://scriptolog.blogspot.com/2007/...helper-functio >> n s.html >> >> --- >> Shay Levi >> $cript Fanatic >> http://scriptolog.blogspot.com Quote: >>> Hey all, >>> >>> anyone got any examples or code that shows how to get and set the >>> attributes of a file ? >>> >>> What I want to accomplish is running through a file/folder >>> structure, >>> and >>> for each file that has is e.g. >>> read only, I want to remove the read only attribute. >>> As a bonus... how do you get the owner name of the file, and >>> possibly >>> set the ownername to somenone else ? >>> Thanks in advance, hope someone has the answer ![]() >>> -- >>> Best Regards, >>> Jacob Saaby Nielsen >>> http://www.ijacob.info >>> gmail: jacob DOT saaby >>> hotmail (IM/LinkedIN/Facebook): same as gmail |
My System Specs![]() |
| | #3 (permalink) |
| | Re: File attributes (getting/setting) and ownername http://scriptolog.blogspot.com/2007/...functions.html --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > Hey all, > > anyone got any examples or code that shows how to get and set the > attributes of a file ? > > What I want to accomplish is running through a file/folder structure, > and > for each file that has is e.g. > read only, I want to remove the read only attribute. > As a bonus... how do you get the owner name of the file, and possibly > set the ownername to somenone else ? > > Thanks in advance, hope someone has the answer ![]() > > -- > Best Regards, > Jacob Saaby Nielsen > http://www.ijacob.info > gmail: jacob DOT saaby > hotmail (IM/LinkedIN/Facebook): same as gmail |
My System Specs![]() |
| | #4 (permalink) |
| | Re: File attributes (getting/setting) and ownername Get and Set file owner: http://www.microsoft.com/technet/scr...8/hey0415.mspx --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > http://scriptolog.blogspot.com/2007/...elper-function > s.html > > --- > Shay Levi > $cript Fanatic > http://scriptolog.blogspot.com Quote: >> Hey all, >> >> anyone got any examples or code that shows how to get and set the >> attributes of a file ? >> >> What I want to accomplish is running through a file/folder structure, >> and >> for each file that has is e.g. >> read only, I want to remove the read only attribute. >> As a bonus... how do you get the owner name of the file, and possibly >> set the ownername to somenone else ? >> Thanks in advance, hope someone has the answer ![]() >> >> -- >> Best Regards, >> Jacob Saaby Nielsen >> http://www.ijacob.info >> gmail: jacob DOT saaby >> hotmail (IM/LinkedIN/Facebook): same as gmail |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| file attributes | Vista General | |||
| File attributes | .NET General | |||
| File Attributes | Vista General | |||
| Setting displayed attributes in Explorer | Vista file management | |||
| file attributes | PowerShell | |||