Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: running a .bat file
Replies: 7   Last Post: Aug 27, 2013 2:28 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Oliver

Posts: 30
Registered: 4/14/09
Re: running a .bat file
Posted: Mar 23, 2012 6:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

TideMan <mulgor@gmail.com> 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.


Thanks folks,

it was the double quotes and full path that did it :)

dos('"D:\MTI Log Exports\orig data\CSV Extractor v1.21.exe" "D:\MTI Log Exports\orig data\test.txt"')

cheers!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.