Hi Friends,

I need to write a piece of code to identify if an Excel session(the process which is listed in the Task Manager) is already running or not?. Can anyone guide me with this?

Any help will be much appreciated!

Regards,
Dinil

Recommended Answers

All 3 Replies

I don't know but If you can mess with tasklist and subprocess module (for XP/VISTA). This is purely untested as I'm not sure if tasklist returns anything!

Hi got a nice piece of code from this site:
http://code.activestate.com/recipes/303339/

I am now able to check if an Excel process is running or not. The code does not use WMI and works fine on Windows :)....

Thanks for the help!!!....

Thanks and Regards,
Dinil

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.