Re: Run[] in background (NT)?
- To: mathgroup at smc.vnet.net
- Subject: [mg25483] Re: Run[] in background (NT)?
- From: "Peter Meulbroek" <meulbroek at wag.caltech.edu>
- Date: Mon, 2 Oct 2000 22:27:01 -0400 (EDT)
- Organization: California Institute of Technology, Pasadena
- References: <8r1bck$ig5@smc.vnet.net> <8r6nvq$t6r@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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 for 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 wolfram.com> wrote in message news:8r6nvq$t6r at smc.vnet.net... > 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.com > Wolfram Research, Inc. > Disclaimer: Opinions expressed herein are those of the author alone. >