>Is there any way to specify the working directory when using the
>run command? Working directory meaning that which you would
>specify in a windows shortcut as 'start in'.
>
RUN inherits the current working directory from VFP, as Doug noted, so CD or SET DEFAULT TO before issuing the RUN command will work.
My API_APPRUN class allows you to specify a starting directory and will fire up anything that the RUN command will, and gives better control over the child process (you can run and wait on completion, or run and return to VFP immediately, monitoring the child's execution and termination from VFP.) You can control the initial ShowWindow state of DOS and WinApps from API_APPRUN as well.
You can download API_APPRUN from here on UT in the Files Section.