I am using python 2.7 and i work with a lot of open windows7 folders and with other programs at the same time. I have tried working with this code (in works fine perfect):
import os
os.system('taskkill /im chrome.exe')
os.system('taskkill /im powerpnt.exe')
os.system('taskkill /im outlook.exe')
os.system('taskkill /im winword.exe')
os.system('taskkill /im excel.exe')
but i don't know how to close all the folders and files (windows 7) at the same time too. I have tried the following
how to close remote desktop window using python
How to Close a program using python?
but didn't understand the way to do it with python.
Also, i tried to search the name process in the Task Manager but i didn't know the name of it.
Is it possible to do it without damaging the operating system of the computer?