MathGroup Archive 2010

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

Search the Archive

Re: Running Mathematica code using DOS

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108725] Re: Running Mathematica code using DOS
  • From: Maria Davis <arbiadr at gmail.com>
  • Date: Mon, 29 Mar 2010 05:22:44 -0500 (EST)
  • References: <hon691$psk$1@smc.vnet.net> <hong5g$7v$1@smc.vnet.net>

Hi David Balley
Thank you very much for your kind response.
I have created the file:"MYFILETOEXECUTE.nb" containing the code to
execute.
I have created a new file named: "file.m" containing the following
code:

UsingFrontEnd[
  nb = NotebookOpen["MYFILETOEXECUTE.nb"];
  SelectionMove[nb, All, Notebook];
  FrontEndTokenExecute[nb, "EvaluateCells"];
]

I tried to use the command:
start file.m

But this command opens file.m, and to execute it, I must press the
button "Run Package" .

Is there a command that can execute automatically the package?

Thanks.


  • Prev by Date: how to place circles or starts in (along) the curves in the plot?
  • Next by Date: Re: Fourier transform of exponential function
  • Previous by thread: Re: Running Mathematica code using DOS
  • Next by thread: Re: Running Mathematica code using DOS