Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Get commandline arguments from process

Get commandline arguments from process

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    P Gibson
    wrote on last edited by
    #1

    Whilst I can get all the processes running on my workstation and hence a handle to the process, and the .EXE name. How can I get the commandline arguments for that process ? I'm trying to write an app so that I can identify the processes better, as we have several wscript.exe scripts run at login time, but some need to be killed by the user after login, any help would be gratefully received.

    2 1 Reply Last reply
    0
    • P P Gibson

      Whilst I can get all the processes running on my workstation and hence a handle to the process, and the .EXE name. How can I get the commandline arguments for that process ? I'm trying to write an app so that I can identify the processes better, as we have several wscript.exe scripts run at login time, but some need to be killed by the user after login, any help would be gratefully received.

      2 Offline
      2 Offline
      224917
      wrote on last edited by
      #2

      The following link can help if the target is not 9x machines: http://mvps.org/win32/processes/remthread.html[^]


      suhredayan
      There is no spoon.

      P 1 Reply Last reply
      0
      • 2 224917

        The following link can help if the target is not 9x machines: http://mvps.org/win32/processes/remthread.html[^]


        suhredayan
        There is no spoon.

        P Offline
        P Offline
        P Gibson
        wrote on last edited by
        #3

        This is just what I was looking for, many thanks it is much appreciated.

        2 1 Reply Last reply
        0
        • P P Gibson

          This is just what I was looking for, many thanks it is much appreciated.

          2 Offline
          2 Offline
          224917
          wrote on last edited by
          #4

          any time :)


          suhredayan
          There is no spoon.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups