[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Starting m-file from command line/shortcut in Windows
From: |
gOS |
Subject: |
Re: Starting m-file from command line/shortcut in Windows |
Date: |
Thu, 24 Jul 2008 09:50:55 -0700 (PDT) |
Why not add the m-file to your .octaverc file? Or even at startup of octave
ask if you wish to run the m file and then do it?
if(isequal(input('run mfile?','s'),'y')), mfile, end;
Or you could make an app generate a new .octaverc, copy the original to a
safe place, and then after octave terminates reinstate the original
.octaverc. Probably could do it with a bat file or some other script.
Bat file would look something like:
# copy original .octaverc to some other directory or rename to .octaverc.bak
# create new .octaverc
# C:/...pathtooctave.../octave/bin/octave
# replace .octaverc
.octaverc would look something like:
more('off')
mFileToRun(inputs)
exit
--
View this message in context:
http://www.nabble.com/Starting-m-file-from-command-line-shortcut-in-Windows-tp18635402p18636044.html
Sent from the Octave - General mailing list archive at Nabble.com.