"view protected operating system files" toogle button?

just wondered how i could go about creating a "view protected operating system files" toogle button for my toolbar. i already have one for showing/hiding hidden files/folders

thanks :wink:

nevermind i think ive got it- i just had to replace the "h" with an "s"

i am just beginning to appreciate the power of this program....

There is also a special command Set HIDESYSTEMFILES=Toggle which toggles the setting Preferences / Folders / Hide protected operating system files.

That option hides files with both H and S bits set so it's different to setting Folder Options to filter the H and S bits (where files with either bit will be hidden).

Of course, if you want to hide all files with the S bit set, whatever the H bit is, then using Folder Options is the way to go.