Re: VFP 6 - problem with RUN command
- From: "JWB" <none@xxxxxxxx>
- Date: Thu, 04 May 2006 20:10:49 GMT
I think you simply need to de-bug your .bat file. Toos VFP to the side for
now and open up notepad. Create a .bat file and test it. If it doesn't
work this way do a google on bat commands. When you do get it to work
compare that file to the one VFP generates and you'll be set.
Subject is near and dear as I do many calls this way and all work 100% so
keep at it.
- Ben
"Steve Freides" <steve@xxxxxxxxxxxxxxxxxxx> wrote in message
news:4bv553F12ikohU1@xxxxxxxxxxxxxxxxx
"Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in message
news:Oqv6hy6bGHA.1260@xxxxxxxxxxxxxxxxxxxxxxx
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
Does not work - watch:
* Begin *
G:\PROGPATH>c:
C:\>cd "\Program Files\<rest_of_long_pathname_with_embedded_spaces>"
Parameter format not correct - "\Program
* End
If I can get past this, the next program is the CALL command in my batch
file, which also doesn't work.
The PAUSE command, however, functions beautifully now. :)
I'm stumped.
-S-
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
- Re: VFP 6 - problem with RUN command
- From: Dan Freeman
- Re: VFP 6 - problem with RUN command
- From: Steve Freides
- VFP 6 - problem with RUN command
- Prev by Date: Re: Adjusting the grid control?
- Next by Date: Re: VFP 6 - problem with RUN command
- Previous by thread: Re: VFP 6 - problem with RUN command
- Next by thread: Re: VFP 6 - problem with RUN command
- Index(es):
Relevant Pages
|