Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a dos command from VFP6
Message
From
26/01/2002 00:11:22
 
 
To
25/01/2002 23:28:54
Christopher Pinnock
United General Insurance Company
Kingston, Jamaica
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00610938
Message ID:
00610979
Views:
19
>I try this class on WIN 200 professional and the following message comes up "Please go to control panel to install and configure components". Title of the window is "Windows 2000 Setup".
>
>Statements used:
>Thisform.RunApp.Init("setup.exe",csetup,"NOR")
>Thisform.RunApp.LaunchApp()
>
>RunApp is the name given to the class.

You're not running the SETUP.EXE from the proper directory, and as a result, you're finding a SETUP.EXE somewhere along the Windows search path. I'd start by checking the path specified in the variable csetup to ensure that SETUP.EXE actually resides in the named directory, since otherwise, Windows will search its own path, and may find the wrong program as a result. You can specify an absolute path for SETUP.EXE to avoid having Windows try to find it if it's not where it expects it to be.

If the value of csetup is empty or null, it will run from the VFP current directory.
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