Button to hide files or folders

I need to have button to hide all files and another one to hide all folders.

It's surely easy but I failed :cry:

And if I have button Set SHOWFILTERFILENAME * or Set HIDEFILTERFILENAME, why I have error in log ?

What is the error?

Which log?

Oups sorry, I forget the screenshot...


You've got the button's function type set to Script Function. You need to set it to Standard Function to run an internal command directly.

:thumbsup: