Re: VFP 6 - problem with RUN command
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Thu, 4 May 2006 11:57:45 -0700
Does your .BAT file run OK if you run it from Windows Explorer?
You may be seeing the difference between command.com and cmd.exe. (I can
never remember which one rears its ugly head where. Sorry.) To specify the
use of command.com (which you should with .BAT files) try:
Run command.com /c your.bat
Dan
Steve Freides wrote:
"JWB" <none@xxxxxxxx> wrote in message
news:Onr6g.85$WP5.51@xxxxxxxxxxxxxxxxxxxxxxxx
remove the /n parameter which tells fox not to wait :)
Still no go. Now my PAUSE works but nothing else in the batch file
does - I get errors about invalid formatting when I issue:
CD "<pathname_with_spaces>"
and a CALL command to another batch file doesn't work, either.
-S-
"Steve Freides" <steve@xxxxxxxxxxxxxxxxxxx> wrote in message
news:4but0jF134eg1U1@xxxxxxxxxxxxxxxxx
I have a program that builds a batch file on the fly, then executes
it:
RUN /n mybatchfile.bat
If I place a SUSPEND command immediately before the RUN command,
then in the debugger, STEP, it works just fine, but under program
control it just blips by so quickly I cannot see what it's doing.
I even went so far as to make the batch file contain one line
PAUSE
which should just display a message asking me to press a key to
continue, but even that doesn't work.
This behavior is exhibited on two different machines, so I confess
to being stumped - any help appreciated.
Thanks in advance.
-S-
.
- Follow-Ups:
- Re: VFP 6 - problem with RUN command
- From: Steve Freides
- Re: VFP 6 - problem with RUN command
- References:
- VFP 6 - problem with RUN command
- From: Steve Freides
- Re: VFP 6 - problem with RUN command
- From: JWB
- Re: VFP 6 - problem with RUN command
- From: Steve Freides
- VFP 6 - problem with RUN command
- Prev by Date: Re: Grids... simple, but I don't know...
- Next by Date: Re: VFP Objects for a beginner - help!
- Previous by thread: Re: VFP 6 - problem with RUN command
- Next by thread: Re: VFP 6 - problem with RUN command
- Index(es):
Relevant Pages
|
Loading