>Hi all,
>
>I have a problem when I issue a RUN command against a batch file. The situation is like this:
>
>* testrun.bat
>start myApp.lnk
>pause
>exit
>* end of testrun.bat
>
>I have no problem at all running the batch file from the command prompt. However, when I run it from VFP using the RUN 'testrun.bat' command, I get the DOS error: Bad command or file name.
>
>Error occurs in both Win NT and Win 2K Adv Serv. Batch, .Lnk and VFP are on the same folder.
>
>The reason I used a shortcut is that; it contains the START IN location which is a UNC path. Should I make some changes to Foxrun.pif? Appreciate all kinds of feedbacks.
Maybe this is oversimplified, but whynot:
RUN "start myApp.lnk"
Make sure to avoid the "/N" option if you require DOS to finish a task before
returining to your APP.
Imagination is more important than knowledge