Re: VFP 6 - problem with RUN command



"JWB" <none@xxxxxxxx> wrote in message
news:ddt6g.98$WP5.27@xxxxxxxxxxxxxxxxxxxxxxxx
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.

Sorry but no - the batch file was and is just fine.

-S-

- 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-








.



Relevant Pages

  • Re: VFP 6 - problem with RUN command
    ... Does your .BAT file run OK if you run it from Windows Explorer? ... and a CALL command to another batch file doesn't work, ... If I place a SUSPEND command immediately before the RUN command, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Shell & VBA
    ... run the command. ... > SHELL command. ... > When manually I execute this batch file, ...
    (microsoft.public.excel.programming)
  • Re: Command Line Question about Renaming Files
    ... It had to do with how I was sending the commands to the command processor. ... this bat file to work. ... It does rename itself in the process and generates an error, ... I don't fully understand how your batch file works, ...
    (microsoft.public.win2000.general)
  • Re: VFP 6 - problem with RUN command
    ... Parameter format not correct - "\Program ... The PAUSE command, however, functions beautifully now. ... Now my PAUSE works but nothing else in the batch file ...
    (microsoft.public.fox.programmer.exchange)
  • Re: VFP 6 - problem with RUN command
    ... Parameter format not correct - "\Program ... The PAUSE command, however, functions beautifully now. ... and a CALL command to another batch file doesn't work, ...
    (microsoft.public.fox.programmer.exchange)