Paradox Community

Items in pnews.paradox-programming

Subject:Re: execute tasklist.exe
Date:Tue, 23 Nov 2021 19:15:59 +1100
From:Tom Krieg <>
Maybe you need to execute the cmd prompt and use the parameters as you 
describe them. e.g. execute cmd.exe /c  "tasklist.exe > C:\\tasks.txt"

On 23/11/2021 6:53 pm, Leslie wrote:
> this works from the windows run field (WinKey + r):
> cmd /c "tasklist.exe > c:\\tasks.txt"
> but you see the cmd prompt briefly while it executes. Maybe there is an 
> option to prevent that.
> On 23/11/2021 10:15 AM, Peter wrote:
>> So frustrating I could spit.
>> Taskkill works just fine, it seems to me Tasklist should also but I just
>> can't get it to work
>> A simple test:
>> execute("Tasklist.exe >C:\\Tasks.txt", No, ExeShowNormal)
>> I've spent hours on this and all that happens is a cmd screen flash and
>> then nothing. Maybe it is just not creating the output file?
>> It does work from a command line (in cmd.exe)
>> I am hoping someone can see the problem, or confirm it is not possible
>> to do.
>> I know I can just run it from a bat file but I hate giving up. Thank you
>> for any tips.
>> Peter

Copyright © 2004