Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming an EXE
Message
From
20/11/1998 16:49:31
 
 
To
20/11/1998 16:00:59
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00159964
Message ID:
00159982
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform