Subject: | Re: execute tasklist.exe
| Date: | Thu, 25 Nov 2021 10:54:22 -0800
| From: | Peter <peterspammenot@whiteknight.email>
| Newsgroups: | pnews.paradox-programming
|
Thanks Jure. I got it to work.
On 11/24/2021 11:35 p.m., modridirkac wrote:
> execute("cmd /c Tasklist.exe > C:\\temp\\Tasks.txt", No, ExeHidden)
>
> You need cmd and /c.
> Also do not use c:\, on most machines users do not have access to c:\
> Beter to use c:\temp\.
>
> Jure
>
>
> On Tue, 23 Nov 2021 01:15:39 +0100, Peter
> <peterspammenot@whiteknight.email> 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
>
>
|