Re: VFP 6 - problem with RUN command



"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
    ... 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)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • 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)

Loading