>I want to "shell" out of a vfp6 app to run another windows based program. I know the "RUN" command supposedly will do this but it only seems to like DOS based path/command strings. Most of my directories (and others as well) often have names that are longer than 8 characters. Therefore, I can't get the RUN command to work if the target .exe has fullpath that is not DOS compliant.
>
>Is there some newer/other function I should be using instead of RUN. If I should use the RUN command is the correct syntax to put the complete target/path in a variable (i.e. cexe) and then use the "&" function (for example RUN &cexe)? Also, what is the "!" do in the RUN command?
! and RUN are equivalent.
An alternative might be to use the API_APPRUN class in the Files Section, or ShellExecute(), as implemented in _ShellExecute in the _ENVIRON.VCX in the FFC.