TideMan <firstname.lastname@example.org> wrote in message <2648324.3343.1332383935744.JavaMail.geo-discussion-forums@ynjl17>... > On Thursday, March 22, 2012 1:21:33 AM UTC+13, Oliver wrote: > > Hi folks, > > > > I've got > > CSV Extractor v1.21.exe > > that is run by dragging and dropping a .csv file onto it. This works > > > > I use a .bat file with the lines > > "D:\MTI Log Exports\orig data\CSV Extractor v1.21.exe" output_ai_plot.txt > > to run the .exe. This works > > > > I use Matlab to run the .bat by using > > dos('D:\MTI Log Exports\orig data\run.bat') > > This doesn't work. > > > > Matlab will run the .exe but it won't parse the output_ai_plot.txt file into the .exe. So > > dos('D:\MTI Log Exports\orig data\run.bat') is effectively just running CSV Extractor v1.21.exe without any file being parsed into it. > > > > any suggestions? > > Have you tried: > dos('"D:\MTI Log Exports\orig data\run.bat"') > In other words, put double quotes around the part with spaces in it.
it was the double quotes and full path that did it :)