Question: My machine is slow, so whenever I open new file(by double click) I would like to have the previously opened tab(s) auto closed.

In Notepad++ 7.5.7, I am opening a folder as a workspace, and every time I open a new file, I need to right click and select `close all but this`, is there a way to do that automatically from settings?

[![enter image description here](https://i.stack.imgur.com/UybVm.png)](https://i.stack.imgur.com/UybVm.png)

In other words, when you open a new file, the others gets closed automatically, only one opened file(tab) at a time.

I tried limiting recent file history to one, but it is not the key.

**Edit**

I think the idea is to limit the number of opened tabs to 1, but how to do that?

Answer: 
I have never gotten a UAC prompt for command line shutdown before, but here are a couple things you can try. If you distributed your script to them over the internet, make sure the script is unblocked. You can do this by right-clicking the script file, clicking `Properties` then checking `Unblock` and then clicking `OK`. 

Another thing you could try (altough this is unlikely to help) is connecting the script to a shortcut, and pointing your automation program to run the shortcut to the script.
Sorry, false alarm, thanks for your time user9811991 - but it was a setting in my program that was checked that should not have been.