Disable button if path don't exist

Is there a way to disable button in toolbar if some path is not exist ?

@ifpath:c:\temp … [Command] … @ifpath:else [disablebutton]

Or maybe by script ?

@ifpath tests the current path.

@ifexists is what you want, if you want to test if a path exists.

But it will only change what the button does when it is clicked. It won't be visually disabled. For that to happen the toolbars would have to consume filesystem change events (so they can update when the path is created or deleted), which they do not currently do.