Can my program determine the command line string?


  1. Posts : 108
    Windows 10
       #1

    Can my program determine the command line string?


    My programming language of choice (Object Rexx) can determine the Process ID. But it cannot tell me the full command line expression, just the parameters passed.
    Is there a Windows utility/program that can display the Command Line?

    Process Explorer displays the Command Line in the "Image" tab, but I need a linemode program to display it.
      My Computer


  2. Posts : 11,247
    Windows / Linux : Arch Linux
       #2

    @Swifty

    I remember REXX from old IBM mainframe days (TSO etc !!!) Regina REXX still works on PC's

    However what you need is simply the PID

    once you've got that just run this command e.g say PID is 123.

    tasklist /svc /FI "PID eq 123"

    REXX can issue cmdline commands - shouldn't be a problem.


    e.g
    /* display current directory */
    say "DIR command using Rexx"
    dir


    REXX great simple language -- pity it never really caught on outside the hallowed walls of IBM back in "Big Blue" days.

    Cheers
    jimbo
      My Computer


  3. Posts : 108
    Windows 10
    Thread Starter
       #3

    Thanks for that Jimbo. I'll give it a go after my afternoon nap. 😊
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:59.
Find Us




Windows 10 Forums