Home > other >  How do I delete excel by batch process in python?
How do I delete excel by batch process in python?

Time:04-18

As shown in figure, could you tell me how to use python batch delete excel process?

CodePudding user response:

 import wmi 
The import OS

C=wmi. Wmi ()
For p in c.W in32_Process () :
If p.N ame=="Microsoft Excel" :
CMD='taskkill/F/T/IM + p.N ame
OS. The system (CMD)
  • Related