Credit: http://wiki.aims.ac.za/mediawiki/index.php/Octave:Getting_started The most torturing step for us was enabling to run an Octave program in MS Windows. We don't mean retyping a few statements and loose them at Octave prompt, but ability to run saved program. Here it is how we accomplished this: Save program with name X.m, into folder F. Run Octave shell from current folder F. type X; at the prompt. For example, we using batch file placed into F with one line: C:\Octave\3.2.0_gcc-4.3.0\bin\octave-3.2.0.exe Moreover, if this program, X.m, calls function fun1 from file fun1.m then placing this file into folder F solves the problem: just type: X; Copyright (C) 2009 Konstantin Kirillov