Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run Mathematica nb file in command line in windows?

504 views
Skip to first unread message

timedcy

unread,
Sep 19, 2010, 5:38:51 AM9/19/10
to
How to run Mathematica nb file in command line in windows?
For example, you can autorun a file.nb after double click a .bat file
in windows
I can not handle it well.
Thanks

shippee

unread,
Sep 20, 2010, 5:41:54 AM9/20/10
to

"C:\Program Files\Wolfram Research\Mathematica\7.0\Mathematica.exe" G:
\data\birthday.nb

"C" would be the drive where your programs are stored, it might be
different if you have Mathematica installed somewhere other than its
default installation. You need the quotes because of the spaces in
the pathing to the executable file. G:\data\birthday.nb is the path
and file name you want the executable to open.

If this is not clear please contact me directly and I can explain in
greater detail.

Steven Shippee
Olympia, Washington

Chris Degnen

unread,
Sep 21, 2010, 2:03:22 AM9/21/10
to

That opens the notebook but doesn't run it. I am told single-click
execution can be done via MathLink using an.exe file. Non-trivial,
apparently.

timedcy

unread,
Sep 23, 2010, 4:19:20 AM9/23/10
to

I have do it as you said before, but it donest work because it just
open the nb file. I want to make it run aotumatically and quit

divisor

unread,
Oct 9, 2010, 6:34:44 AM10/9/10
to
Hello Timedcy:

I thought if you make all of the cells into "initialization" cells.
then when it is opened, they will run. No?

Regards..

Roger Williams
Franklin Laboratory

On Sep 23, 1:19 am, timedcy <time...@gmail.com> wrote:
> On Sep 20, 5:41 pm, shippee <slship...@gmail.com> wrote:
>
>
>
>
>
> > On Sep 19, 2:38 am, timedcy <time...@gmail.com> wrote:
>
> > > How to run Mathematica nb file in command line in windows?
> > > For example, you can autorun a file.nb after double click a .bat file
> > > in windows
> > > I can not handle it well.
> > > Thanks
>

> > "C:\Program Files\Wolfram Research\Mathematica\7.0\Mathematica.exe" =


G:
> > \data\birthday.nb
>
> > "C" would be the drive where your programs are stored, it might be
> > different if you have Mathematica installed somewhere other than its
> > default installation. You need the quotes because of the spaces in
> > the pathing to the executable file. G:\data\birthday.nb is the path
> > and file name you want the executable to open.
>
> > If this is not clear please contact me directly and I can explain in
> > greater detail.
>
> > Steven Shippee
> > Olympia, Washington
>
> I have do it as you said before, but it donest work because it just

> open the nb file. I want to make it run aotumatically and quit- Hide quot=
ed text -
>
> - Show quoted text -


0 new messages