Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN command problem
Message
 
To
01/08/2001 17:33:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00538572
Message ID:
00538647
Views:
9
>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 && this is a shortcut to the app I intend to run
>pause           && to show the error when being run from VFP
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform