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.