Command to toggle system files visibility

I'd like to be able to toggle visibility of system files with a button on the toolbar. Does someone know if there is a command and syntax for this?
would I need two buttons, one for ignoring system files and another to make them visible again?

thanks for any help you can give...

Rod.

One button can do it.

Set HIDEFILTERATTR=S

Or, if you want to toggle the option in Preferences (which hides files if and only if they have the System and Hidden attributes set):

Set HIDESYSTEMFILES=Toggle