help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying to do a dos copy file command from an octave function in Wind


From: Tatsuro MATSUOKA
Subject: Re: trying to do a dos copy file command from an octave function in Windows Vista
Date: Thu, 29 Jul 2010 13:48:12 +0900 (JST)

Hello

>      dos("copy fin fout");

should be

dos(["copy " fin fout]);

Regards

Tatsuro

--- Tim Rueth  wrote:

> Hi all,
>  
> I'm trying to effectively do the following Windows DOS command from within
> an Octave function:
>  
> copy var1*var2.txt var1var2.txt
>  
> So, I created the following very simple function:
>  
> function [] = concatresults(var1, var2);
> # copy all var1...var2.txt files to a single output file called var1var2.txt
>  
>      fin = [var1 "*" var2 ".txt"];
>      fout = [var1 var2 ".txt"];
>      dos("copy fin fout");
>  
> endfunction;
> 
> The function doesn't work, and when I execute the individual commands at the
> octave prompt, it says "The system cannot find the file specified." after
> executing the dos() function.
>  
> I could just open up a command window and do the copy, but I'm hoping to
> automate this as part of a larger function.  I'm sure there's a simple way
> to do this from within Octave.  Help please?
>  
> Thanks,
>  
> --Tim
> > _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> 


--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]