Home > Archive > FoxPro Help and Support > May 2005 > RUN Command error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RUN Command error
Kam

2005-05-25, 3:24 am

I try to use RUN to execute a batch file (.bat), but I saw a ms-dos window
come up and disappear stict away.

I do have the Foxrun.pif

How can I overcome this problem?
If I start a msdos window, then run the batch file. everything work.

The problem is in VFP. I am using VFP8.


Dan Freeman

2005-05-25, 11:24 am

Have you included the full path to your .BAT file in your run command?

Depending on your RUN command (which you didn't post), and your version of
Windows, you may be getting either cmd.exe or command.com as the
interpreter. It's best to specify:

RUN /N command.com <full path>\your.bat

I can't guarantee that syntax and don't have my references at hand. But it
should be easy enough to look up at MSDN.

Dan

Kam wrote:
> I try to use RUN to execute a batch file (.bat), but I saw a ms-dos
> window come up and disappear stict away.
>
> I do have the Foxrun.pif
>
> How can I overcome this problem?
> If I start a msdos window, then run the batch file. everything work.
>
> The problem is in VFP. I am using VFP8.



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com