|Subject:||Re: execute tasklist.exe
|Date:||Thu, 25 Nov 2021 08:35:15 +0100
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\.
On Tue, 23 Nov 2021 01:15:39 +0100, Peter
> 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.
Using Opera's mail client: http://www.opera.com/mail/