Paradox Community

Items in pnews.paradox-programming

Subject:Re: execute tasklist.exe
Date:Tue, 23 Nov 2021 17:53:02 +1000
From:Leslie <"ViaThe List">
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

This email has been checked for viruses by Avast antivirus software.

Copyright © 2004