Can my program determine the command line string?

  1.    #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 ComputerSystem Spec

  2. jimbo45's Avatar
    Posts : 6,894
    Windows / Linux : Centos, Ubuntu, OpenSuse
       #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 ComputerSystem Spec

  3.    #3

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


 

Related Threads
Read more: Windows Command-Line: The Evolution of the Windows Command-Line Windows Command Line Tools For Developers
Solved Command Line Questions in General Support
188715 Sorry, newbie question here... I'm reading the tutorial Customize Command Prompt Colors, but I still don't understand what the "Popup Colors" are. I've never actually seen them. Is it for command prompts launched by an application? ...
i want start a Run a scheduled task via command line like this: Code: %SystemRoot%\system32\taskschd.msc /Run /TN "RegIdleBackup" when i run the cmd in the prompt as admin the shedular task GUI pop up but the task not start. Is there a...
If I use the power icon and thenclick sleep my backup software will wake up my computer and backup run myschedule. If I use any of the followingcommand lines, the software cannot wake my computer, I have ran “powercfg/h /off” at C:\windows\system32...
Solved Can't add user via command line in User Accounts and Family Safety
I am trying to add a user via the command line through a virtual pc I added with VMWare. I'm running windows 10, and unable to add because this is what I get when I open CMD: I can't go beyond this point, I keep getting error messages. Any help...
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 23:39.
Find Us