Sujet : Re: how to pass /E:ON argument to cmd.exe using exec (Windows)
De : mssr953 (at) *nospam* gmail.com (Michael Soyka)
Groupes : comp.lang.tclDate : 30. Sep 2024, 22:03:59
Autres entêtes
Organisation : self
Message-ID : <vdf3o0$2chsp$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 09/30/2024 2:33 PM, et99 wrote:
On 9/30/2024 11:15 AM, et99 wrote:
On 9/30/2024 8:35 AM, Michael Soyka wrote:
>
>
A followup question is how can I see what string is being presented to to Windows?
>
>
My goto tool is process explorer, much more detailed that windows task manager, just hover mouse over any process and it will tell you the command line that was ultimately received (or click and choose properties)
>
https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer
>
This is a no-install program, you can just run it.
>
Using twapi, and if you exec with & you will get the pid, you can then use:
>
twapi::get_process_commandline PID ?options?
>
>
-e
>
Hmmm, it just occurred to me that if the process dies immediately, you might not have a chance with process explorer, and don't know if the get_process_commandline will be quick enough either.
Yes, in my case, the process would die almost immediately but, if /K is used instead of /C, the process does hang around and your suggestions would work. Thanks for the advice.
-mike