in reply to Re: Get PID of a particular instance of Excel
in thread Get PID of a particular instance of Excel

As I said in my last thread, I have an ASP page running on the remote server. This ASP uses the Shell object to run the Perl script as a process and wait for its completion? This Perl Script inturn uses OLE to open excel file & create graph. Different users from different hosts access this ASP page & try to create graphs. Now the problem is when 2 or more users try to generate graph simultaneously, the excel file opened by perl is not getting closed. Over a period of time there will be many instances of excel in the task manager. So I just need to find out what session has opened Excel.exe in task manager, get its pid & then kill it. I am trying this since a week. Kindly help.
  • Comment on Re^2: Get PID of a particular instance of Excel