|
On Apr 7, 1:13=A0pm, Praetorian <ashish.sadanan...@gmail.com> wrote:
> On Apr 7, 12:39=A0pm, "sushma sharma" <ssha...@ynospamahoo.com> wrote:
>
>
>
> > hi,
>
> > i am trying to run a .bat batch file. however using the following scrip=
t:
>
> > matlab -r mfilename
>
> > causes matlab to open up in this directory : C:\Windows\system32
>
> > and as i result i'm getting many naming errors. how can i change this??=
?
>
> > (i have tried right clicking a shortcut and changing the 'start in' dir=
ectory. if i start matlab maually, it opens in the directory as specified b=
y my modifying the properties on the icon).
>
> > however, when trying to run from a batch file, it still opens up in the=
C:\Windows\system32 directory!
>
> > HELP!!!
>
> > regards,
>
> > sushma
>
> Try adding the following to your batch file:
>
> cd <directory containing your batch file>
> matlab -r mfilename
>
> C:\Windows\system32 is the directory that contains cmd.exe which is
> running your batch file.
>
> HTH,
> Ashish.
Sorry, I meant
cd <directory containing your mfile>
matlab -r mfilename
Does that work?
|