Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP program never clears from Task Manager
Message
From
15/05/2016 14:05:55
 
General information
Forum:
Windows
Category:
Other
Miscellaneous
Thread ID:
01636367
Message ID:
01636398
Views:
63
Always ,issue quit to end the current Visual FoxPro session and returns control to the operating system.
Very important: If you turn the computer off without issuing QUIT, open files might become damaged and data lost, and temporary work files that would normally be deleted may be left on disk.
the WMI code is absolutely similar to DOS taskKill (it ends a process or task as you make manually in the windows taskmanager).
-application example
local oshell
oshell = CREATEOBJECT('WScript.Shell')
oshell.Run("taskKill /f /im yourVFP.exe", 0)
oshell=null
can make same code with API shellexecute
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform