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" <email@example.com> wrote in message news:qfRIo.firstname.lastname@example.org... > 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. > >