Thread: From many versions of same program.exe name, how to determine it's arguments

  1. #1
    Registered User
    Join Date
    Apr 2021

    From many versions of same program.exe name, how to determine it's arguments


    On Visual Studio 11 C++ program, I have the name of a program such as n49.exe. There "might" be several of these programs running. They have different argument lists.

    "argv[]" is useless to me because I want information about other programs running, not mine.

    Again, from my program called "abc.exe", I want to know about the arguments used by "n49.exe" when it started. "n49.exe" could be started before "abc.exe" or afterwards.

    Question: From a non-n49.exe program, how do I determine the argument list for each program such as n49.exe from within a C++ program?

    Thank you,
    Last edited by Michael789; 04-01-2021 at 09:20 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to look at mulitple versions of same program
    By street sign in forum C Programming
    Replies: 1
    Last Post: 05-09-2017, 02:34 AM
  2. Replies: 2
    Last Post: 03-06-2012, 10:58 AM
  3. Replies: 5
    Last Post: 10-27-2011, 06:28 AM
  4. Program to determine sum
    By jadedreality in forum C++ Programming
    Replies: 17
    Last Post: 10-09-2007, 11:48 PM
  5. Program Versions
    By Jperensky in forum C Programming
    Replies: 3
    Last Post: 03-15-2002, 06:21 PM

Tags for this Thread