Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming an EXE
Message
De
20/11/1998 16:49:31
 
 
À
20/11/1998 16:00:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00159964
Message ID:
00159982
Vues:
24
>Having created a VFP5 EXE file from a project, I want to be ale to call it from other VFP apps and wait until it's completed processing before continuin with the calling app.
>
>I can use the GetWindow API functions to check whether an app of a givne name is running; problem is, the EXE runs with the name "Microsoft Visual Foxpro". How do I change the name of my EXE to be something more unique and descriptive? The EXE itself is called PURGEAPP.EXE, so it's not getting the name from there.

Changing _screen.caption should change the default name.

If you launch the application using the Win32 API call CreateProcess(), it returns a process handle that is a 100% effective method of monitoring the application. Look in the FAQ under Win32 and Other APIs for my entry on LaunchAppAndWait.

>
>Thanks in advance...
>
>-- jas
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform