>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