Re: VFP 6 - problem with RUN command



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-


.



Relevant Pages

  • Re: VFP 6 - problem with RUN command
    ... I think you simply need to de-bug your .bat file. ... Toos VFP to the side for ... The PAUSE command, however, functions beautifully now. ... and a CALL command to another batch file doesn't work, ...
    (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: Windows Explorer Shell command
    ... > Windows Explorer that will launch a .bat file from within the ... > Batch File" would run the batch file from within the directory. ... Subject: Windows Explorer Shell command ...
    (microsoft.public.windowsxp.general)
  • Cant run csc.exe?
    ... I added the path variable and in the command prompt where I am running my ... Here is the address from Windows Explorer: ... attrib user.dll -r ... operable program or batch file. ...
    (microsoft.public.dotnet.languages.csharp)

Loading