Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close all Programs

Status
Not open for further replies.

asm338s

Programmer
Jul 16, 2001
135
US
Hi all:

I want to close all running programs on a local machine before the users can run my application. Any Suggestions on how to go about that.

Thanks
 
What you want to do would require some API calls, I believe. I wouldn't recommend that you force all of the user's apps to shut down, but you should be able to at least scan to see what programs are running and only continue if the list contains no extra programs in it.

Hopefully someone else can post some sample code (I don't use API calls myself) but if not, maybe knowing that this is what you must do can help you find what you need.

Good luck!
 
If you go to the VFP Download area on the UT ( and put Enumerate in the Title box. You'll get back a couple of Utilities. "Enumerate Processes in Windows" even has a demo that looks a lot like the task manager's process
list in Windows NT/2000/XP.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top