473,413 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

how to determine an exe is running ?

how my vc++ application can determine whether an exe is running or not
Oct 8 '07 #1
2 1326
ashitpro
542 Expert 512MB
how my vc++ application can determine whether an exe is running or not
use the tasklist command to get the list of running applications
redirect the out put to temporary file
parse the file (first column ) for your executable
if you find that then consider it as running

e.g.
system("tasklist > temp.txt");
//code to parse the temp.txt
Oct 8 '07 #2
sicarie
4,677 Expert Mod 4TB
I would be extremely surprised if there was not a way to do this through the Win32 API.

Maybe start here?
Oct 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Peter Schmiedeskamp | last post by:
Hello, I'm writing a python program (in Windows) from which I would like to determine whether or not either: 1. The user has administrative access on the current PC. or (better) 2. The currently...
1
by: John Sway | last post by:
I'm writing a web-based "Query analyser" tool for our company intranet. It allows a user to type any SQL statement in a form, and execute it over the Web. The SQL can be a query that returns...
3
by: Louis Frolio | last post by:
All, if I were to write an app that has one task, determine whether or not an SQL Instance is running, what would be the easist method for this? I personally think that a query against the...
2
by: Ben Fidge | last post by:
What is the correct way to determine when your app is running on my development machine and when it is running on the live server? In the web.config file you can specify how errors are displayed...
3
by: Danny Miller | last post by:
Hi there, I've got a web app that uses impersonation and makes calls to a SQL Server backend. I'd like to be able to automate the setting of database security for the web app upon deployment....
4
by: Tom | last post by:
How can one determine if a .NET program is running in the developer IDE or running stand-alone? I am sure I saw something somewhere but I don't remember where or what. Thanks! Tom
7
by: semedao | last post by:
Hi all, I view many posts about this issue , the connected property does not tell us the current status of the socket. based on couple of suggestions of msdn , and some article here , I try to...
2
by: gsander | last post by:
We have a W2K / Access2K environment where recent maintenance has prevented the /X commandline switch from starting macro's. We have several "batch" processes that run at night using the task...
0
by: aliman | last post by:
Hi All, Coding in C#.Net 2.0 A requirement of my app is that certain functions should not be allowed to execute if excel is running. The app is used in terminal server sessions so checking if...
9
by: Scott | last post by:
What is the most reliable method to determine the folder a script is running in? I was looking at the globals in $_SERVER but all the variables also listed the actual file the script was running...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.