Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close Window outside VFP in Windows2000
Message
From
26/09/2002 13:24:27
 
 
To
26/09/2002 13:12:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00704804
Message ID:
00704818
Views:
25
>Is there a way to close a system level window from within VFP7 using Windows2000? In Windows19XX, you were able to close a window after execution,
>but that checkbox in the Properties is gone in Windows2000.
>
>Specifically, I want to start my VFP7 application from a batch file and then
>close the minimized batch file window from within my application. Otherwise, the window hangs around until the application closes.
>

This should not be a problem; unless you're using something to run VFP synchronously, like START /WAIT or invoking Wscript.Shell's Run method with the option to wait until the app completes, simply add the line
EXIT
immediately after the line that invokes the VFP WinApp, and the batch file should close.
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
Next
Reply
Map
View

Click here to load this message in the networking platform