Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP.exe to different VFP.exe
Message
De
16/02/2021 10:12:44
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
12/02/2021 17:03:28
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01678195
Message ID:
01678261
Vues:
78
Thank you very much for the assistance. I am attempting to let the launcher icon switch to an existing VFP6. How can the launcher app then say VFP6.DoCmd?

>>
>>What is objwmiservice = Getobject("winmgmts:\\.\root\"+m.wmiclass)? I get Moniker cannot open file.
>
>Marco's program won't run in VFP6.
>
>You can call the class directly, then (with a little twist needed, don't ask me why...).
>
>
>LOCAL Processes
>LOCAL Process
>LOCAL WMIQuery
>LOCAL WMIService
>
>m.WMIService = GETOBJECT("winmgmts://.\root\cimv2")
>
>m.WMIQuery = "SELECT * FROM Win32_Process"
>m.Processes = m.WMIService.ExecQuery(m.WMIQuery, , 32)
>
>FOR EACH m.Process IN m.Processes
>
>	IF m.Process.Name == "VFP6.EXE"
>		? "VFP6 is running at", m.Process.ExecutablePath
>		EXIT
>	ENDIF
>
>ENDFOR
>
>
>PS - thinking about it again, it may seem more strange that "winmgmts:\\" is working, instead of ""winmgmts://"...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform