Maxima batch mode



Hello,
I am a new user of Maxima since 4 days. I work on Windows XP.
Usually I work with R but I need maxima for computer algebra functionalities.
I would like to create a script with R that
- create a file ("funcmaxima.txt") with function for maxima
- launch maxima with a this batch file
- and then take the results from a text file where maxima has write the 
results (with command stringout).

I think I know how to do it but I have only one problem to launch maxima 
from R.

With R, I can launch xmaxima through cmd.exe with this line:
system('"C:/Program Files/Maxima-5.9.0/bin/xmaxima.exe"')

But I do not know how to say to maxima to execute what is in the file 
"funcmaxima.txt". I think I must use batch commands but do not find the 
solution.

What I have read in the doc is that I must open maxima by hand and then use 
the batch button with my file. I never read about a complete batch mode 
(launch xmaxima and execute a scrit automatically).

Hope someone could help me,
Sincerely.


Stéphane DRAY
-------------------------------------------------------------------------------------------------- 

Département des Sciences Biologiques
Université de Montréal, C.P. 6128, succursale centre-ville
Montréal, Québec H3C 3J7, Canada

Tel : (514) 343-6111 poste 1233         Fax : (514) 343-2293
E-mail : stephane.dray@umontreal.ca
-------------------------------------------------------------------------------------------------- 

Web                                          http://www.steph280.freesurf.fr/
--------------------------------------------------------------------------------------------------