MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Run[] in background (NT)?

  • To: mathgroup at
  • Subject: [mg25483] Re: Run[] in background (NT)?
  • From: "Peter Meulbroek" <meulbroek at>
  • Date: Mon, 2 Oct 2000 22:27:01 -0400 (EDT)
  • Organization: California Institute of Technology, Pasadena
  • References: <8r1bck$> <8r6nvq$>
  • Sender: owner-wri-mathgroup at

What about the old standbyes:
1)  create a shortcut to the app, and request that it startup as a minimized
application (settable under the "properties" of the shortcut).  This works
Run["c:\\temp\\notepad.exe.lnk"] where notepad.exe.lnk is a shortcut to
notepad, set as above.

2) call the program from a vbscript, where you can specify the options of
the call to the executable using the "WshShell.Run" method, specifying
either a minimized or a hidden application.

What's desired here is to instigate a call to "CreateProcess(Ex)" with
appropriate flags.  If the target application supports the nCmdShow flag of
WinMain, you're golden.

"P.J. Hinton" <paulh at> wrote in message
news:8r6nvq$t6r at
> On 29 Sep 2000, Tom Aldenberg wrote:
> > I run a batch shell script from Mathematica:
> > Run["c:\acsl\math\amath.exe (+options)"]. How can I do that in the
> > background under NT without the acslmath program taken over the
> > screen?
> Under its current implementation, there is no way to suppress the console
> window produced by invoking Run[].
> --
> P.J. Hinton
> User Interface Programmer                         paulh at
> Wolfram Research, Inc.
> Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: List element manipulation
  • Next by Date: Re: LegendreP & Gauss quad bug
  • Previous by thread: Re: Run[] in background (NT)?
  • Next by thread: Re: Run[] in background (NT)?