Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #1805
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Getting some system information via VBSCript |
| Date | 2013-08-14 10:16 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <kug3gr$kk4$1@dont-email.me> (permalink) |
| References | <8061win2ic.fsf@gmail.com> <krjl5e$4va$1@dont-email.me> <80zjtuw3c2.fsf@gmail.com> <krkp3a$het$1@dont-email.me> <kug1v7$7e3$1@online.de> |
| Well, I tried checking the r/o attribute in Vista: | | - One of my TMP-Subdirs was already marked as r/o. I could create a new txt | file in it and write to it. The file was r/w, the subdir still r/o. | | - I changed the subdir attribute to r/w and back to r/o, confirmed | changement for all files, and the txt file was now r/o also. | | This was reproduceable and just that what I've expected: Changing the subdir | attribute invokes a dialogue and this could change the underlying files and | subdirs. | What you're describing has nothing to do with permissions. Nor does it have anything to do with the quirky fake r/o default setting on folders. Folders can be marked read-only. It doesn't mean anything. It's nonsense. For whatever reason, it's the default setting. Nor does it have anything to do with desktop.ini files, as Deanna thought. (At least not on XP. I assume it's the same on Vista/7.) One can add a desktop.ini to a folder marked r/o or system in order to customize the folder by doing things like using a special icon. I do that by writing a desktop.ini like so on XP: [.ShellClassInfo] IconFile=C:\WINDOWS\NewIconStorage\uni1.ico IconIndex=0 The desktop.ini won't work unless the folder has either the system or r/o attribute. That particular behavior is also arbitrary nonsense that MS has never explained, as far as I know. But all of my folders are marked r/o. Most do not have a desktop.ini file. R/o, by itself, means nothing with folders. What you're talking about is something altogether different. When you changed settings by hand in the Properties window the dialogue asked if you want to apply those settings to all subfolders and files. That's an extra step. All that it demonstrates is that it's possible to get Windows to mark an entire folder of files as r/o, or to clear to r/o marker, by fiddling with the Properties window. In other words, even when you specifically set a folder r/o it has no affect on anything. It *just so happens* that when you do it through the Properties window you're presented the option to also change settings on subfolders and files. So the morals of the story: 1) Ignore r/o on folders. It's nonsense. (Unless you want to play with desktop.ini files.) 2) Permissions shouldn't be confused with file attributes.
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Getting some system information via VBSCript vincent.belaiche@gmail.com (Vincent Belaïche) - 2013-07-10 12:16 +0200
Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-07-10 08:53 -0400
Re: Getting some system information via VBSCript vincent.belaiche@gmail.com (Vincent Belaïche) - 2013-07-10 22:46 +0200
Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-07-10 19:06 -0400
Re: Getting some system information via VBSCript "Theo Tress" <rbk@online.de> - 2013-08-14 15:21 +0200
Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-08-14 10:16 -0400
Re: Getting some system information via VBSCript Deanna Earley <dee.earley@icode.co.uk> - 2013-08-14 16:41 +0100
Re: Getting some system information via VBSCript "Mayayana" <mayayana@invalid.nospam> - 2013-08-14 11:53 -0400
Re: Getting some system information via VBSCript ralph <nt_consulting@yahoo.com> - 2013-08-14 11:23 -0500
Re: Getting some system information via VBSCript Deanna Earley <dee.earley@icode.co.uk> - 2013-07-11 09:48 +0100
Re: Getting some system information via VBSCript vincent.belaiche@gmail.com (Vincent Belaïche) - 2013-07-12 22:00 +0200
csiph-web