Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP program never clears from Task Manager
Message
 
 
À
15/05/2016 14:05:55
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
01636367
Message ID:
01636399
Vues:
38
>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

I did add the QUIT, as you suggested. I didn't change how the program was executed from the ASP.NET app.

And I will try your code with 'taskkill' as well.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform