I have found the cause for the error. If you enter:
filename.exe 1 "c:\data\dbase\"
the last \ dispappears, so I tried :
filename.exe 1 "c:\data\dbase\\"
and that works!
"ladidalimey" <firstname.lastname@example.org> wrote in message news:qfRIo.email@example.com... > Hi, > > I have a matlab function that I have compiled into a standalone executable > in windows. > > As a matlab function, the to inputs are 1 and directory information > 'c:\data\dbase\', and I would use: > > functionname(1,'c:\data\dbase\'); > > when I call the function from a DOS shell I have tried: > > filename.exe 1 'c:\data\dbase\' > > but I get an error for too many input arguments. > > I have tried filename.exe 1 ['c:\data\dbase\'] > > with the same result. > > Please help. > > Thanks > > L. > >