help-octave
[Top][All Lists]
Advanced

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

Re: Running dos command in octave (win32 version)


From: Christoph Dalitz
Subject: Re: Running dos command in octave (win32 version)
Date: Mon, 26 Jul 2004 15:15:58 +0200

On Mon, 26 Jul 2004 09:07:43 -0400
"Ciotti, Louis A " <address@hidden> wrote:
>
> I am trying to run some dos commands within octave, and I cannot seem to
> get them work.  Basically I want to delete some files and run a batch
> file.
> 
> To delete the files I have tried:
> 
> System("del myfile.ext")
> 
> Which gives:
> 
> del: not found
> ans = 127
> 
> What am I doing wrong?
> 
system() probably calls /bin/sh to run the given command.
Try "rm myfile.ext" or, if you insist on using the crappy DOS shell
"cmd.exe /c del myfile.ext".

Christoph



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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