How to turn off the Excel process

xiaoxiao2021-03-06  53

Since ASP.NET does not turn off the process, you can only place the following function in the Windows program and directly in one service to execute private void killprocess (String ProcessName) {system.diagnostics.process myproc = new system.diagnostics .Process (); // Get all open processes try {foreach (process thisproc in process.getprocessesbyName) {if (! Thisproc.closemainwindow ()) {thisproc.kill ();}} catch (Exception EXC) ) {Msg.text = "Kill" ProcessName "Failed!";

转载请注明原文地址:https://www.9cbs.com/read-83942.html

New Post(0)