Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00198756
Message ID:
00198766
Views:
23
>Hello All,
>
>I just had an application moved from a Windows95 environment and VRP5a to WindowsNT 4.1 and VFP6.
>

What is Windows NT 4.1?

You might try using API_APPRUN, a class that I wrote that uses one of the API calls to replace the RUN command.


>In this app there is a RUN command. From VFP6, I get the dos pif window where I quickly see "Bad command or file name". The same BAT file, however, runs from nicely from a dos window or by double clicking on it in explorer.
>

Do you have the paths for the batch file correct? You may have a problem regarding either the Windows Search path, used to locate the executable components, or the strting directory, which is inherited from the VFP application's current directory (retrieved by CURDIR()).

You might try changing directories to be in the one the batch file resides in before using the RUN command. API_APPRUN allows you to specify a starting directory for executables.

>What gives?? Originally I thought maybe the file name so from 9 characters I remnamed it to 6 characters but with no success.
>
>Any help would be appreciated!!
>
>Sandy
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