From: dh on
Sorry, I made a typo. It should read:
-initfile
and not: -inputfile
Daniel

On 29.03.2010 12:20, dh wrote:
> Hi,
> if you want to run a program under the kernel without the frontend
> interface, you would write your input into a *.m file.
> If you want to shutdown mma after the commands are executed, you end
> your file with: Quit[]
> To launch the Kernel and execute your commands:
> ...\MathKernel -noprompt -inputfile FileName
> If the kernel is not on the Path, you need to give the full name,
> enclosing it in quotes if it contains spaces. The same may apply the
> input file name.
> Daniel
>
> On 28.03.2010 11:07, Maria Davis wrote:
>> Hi,
>>
>> I want to run Mathematica with DOS Command. My purpose is to launch
>> a Mathematica program written in .nb file or in .txt file and to
>> execute it.
>> Can you please help me?
>> Many thanks.
>>
>
>


--

Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh(a)metrohm.com>
Internet:<http://www.metrohm.com>


From: Maria Davis on
Thanks a lot for your help
I have tried MathKernel -noprompt -initfile file.m
But as result, a window named "Mathematica 7 kernel" is opened , and
it is empty.
Unfortunately, the file is not run.
Please can you help me?
Thanks.

From: dh on
On 04.04.2010 13:45, Maria Davis wrote:
> Thanks a lot for your help
> I have tried MathKernel -noprompt -initfile file.m
> But as result, a window named "Mathematica 7 kernel" is opened , and
> it is empty.
> Unfortunately, the file is not run.
> Please can you help me?
> Thanks.
>

Hi Maria,
my guess is that mathematica does not find your file. Did you give the
full name, including the path?
cheers, Daniel

--

Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh(a)metrohm.com>
Internet:<http://www.metrohm.com>