To close a folder and all its open parent folders, simply press the SHIFT key while clicking on its Close box or alternatively press ALT + SHIFT + F4.

 

Back to Windows Tweaks