octave-maintainers
[Top][All Lists]
Advanced

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

Re: Problem using copyfile and movefile


From: David Bateman
Subject: Re: Problem using copyfile and movefile
Date: Tue, 27 Feb 2007 13:48:19 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

address@hidden wrote:
> I'm trying to use copyfile and/or movefile under MSVC-compiled octave,
> but I face limitations due to the poor underlying command prompt: you
> can't specify multiple source files (you can do it with globbing, but
> not with
> explicit file list like "cp file1 file2 file3 dest").
>  
> I'm wondering what's the best way to handle this:
> 1) modify .m files to perform element-wise copy/move through a for loop:
> quite slow, but should work; easy to implement
> 2) do not rely on underlying cp/mv tools and implement it completely with
> octave tools: lot of work; portable; should probably be done in C++ for
> speed, using file_ops, file_stat and dir_entry
> 3) include cp.exe and mv.exe in octave distribution (MSVC): I'm not really
> in favor of that
>  
> Michael.
>  
Hey you answered your own question -> 2) .... Seriously, is it that much
work? It seems to me that it would be a good idea in general to remove
these external dependencies when possible, and in that case  things like
pack, zip, etc should also be considered as candidates to have native
implementations.

D.


-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

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