How to close any file without saving it?
19 views (last 30 days)
Hello, I want to know what is the command for closing a particular type of file without any requist to save it.
i.e. I want to know:
- How can I close all files from any type of application e.g. close all txt files that are open?
- How can I close those files automatically without saving?
I already know, for closing an excel file the following commands are used:
However when I use code, the application, (in this case excel) asks me if I want to save my file.
Excel = actxGetRunningServer('Excel.Application');
Excel.Quit; % Shut down Excel.