Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Killing exes currently being used
Message
From
27/05/1999 14:17:18
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00223197
Message ID:
00223592
Views:
21
Thanks, I agree about the choice of languange, but it's all we've got and we aren't allowed to use anything else anyway, Thank agian!


>>Thanks for your response Ed, however, I failed to mention that I need to do it programmatically, when no one is supposed to be here (including me!:)
>>
>
>It's not terribly difficult to determine who has a file open (there's sample code here on UT that shows how to do that using Paul Tatavu's POINTERS class) but killing a remote connection requires some work - the API call NetFileClose() can do it in conjunction with information retrieved through NetFileGetInfo(), but both API calls only run on an NT System, and require Administrator or Account Operator privileges to use. You might want to look into a commercial ActiveX product to handle this for you that's VFP-compatible; I don't know of one to recommend, but www.activex.com and www.componentsource.com are two likely sources.
>
>VFP would not be my first choice of language to write this sort of application.
>
>>>>I have a situation where if an exe is being used I want to kill the process opening up the exe for deletion.
>>>>
>>>>Does anybody have any suggestions on doing this. I need to do it on an NT4.0 server where I am the admin using win95 clients that run the exe.
>>>>
>>>
>>>If you do your adminsitration at the NT Server, then you can disconnect the user from their attachment to the server through the Server Administration application or WinFile (WinFile is easier to use when you know the file but not the users, Server Administrator is easier where the user is known but not the files.)
>>>
>>>>Any help is greatly appreciated.
Stephen Rushton Jr.
Stephen.T.Rushton@lmco.com
Previous
Reply
Map
View

Click here to load this message in the networking platform