main logo
Subject: Re: Where Do Files Go When Sent to the Vista Windows Folder?
Author: Paul McNett

Posted: 2007/10/30 23:57:43
 
View Entire Thread
New Search


Paul McNett wrote:

> I don't know about specific code, however on the WinXP commandline there
> are 2 applications available that would provide the basic ingredients:
>
> tasklist (known as tlist prior to xp)
> kill


My apologies! kill on my system is provided by cygwin, which brings
linux tools to windows. (plug for cygwin: it rocks being able to have a
semblance of my linux bash shell on Windows).

However, I know I've found tools online to do this. I think one of them
was called 'process.exe'. Googling for 'windows kill process' seems to
find some interesting leads.

I guess if I were to pursue this from VFP I'd want to find the relevant
win32 api functions to call, and not use external commandline
applications for this.

googling 'win32 api function enumerate process' yields this promising
hit which promises to show how to do it from VB (which will give you the
API functions to translate to VFP):

http://msdn2.microsoft.com/en-us/library/ms173043(VS.80).aspx
"""
This sample demonstrates calling Win32 API functions to enumerate and
control processes and windows, and to query and change system settings.
"""

--
pkm ~ http://paulmcnett.com




 
©2007 Paul McNett
<-- Prior Message New Search Next Message -->