Re: Moving, Copying, Renaming Files using IDL [message #39666] |
Tue, 08 June 2004 12:44 |
i-kant
Messages: 14 Registered: June 2004
|
Junior Member |
|
|
b_gom@hotmail.com (Brad Gom) wrote in message news:<bde24eff.0406071239.5053f6f2@posting.google.com>...
> Hi Edwin,
>
> assuming you're using windows, I've posted a DLL at:
>
> http://people.uleth.ca/~brad.gom/fileio/FileIO.zip
>
> I think I wrote this for version 5.0. There are wrapper procedures for
> copying, moving, deleting and renaming files, as well as creating and
> deleting directories, reading the file date, and checking the free
> disk space. I never got around to turning it into a DLM (there is no
> need since version 5.6.), but it should work. Another option would be
> to use SPAWN.
>
> Brad
>
Thanks, Brad. I am using windows, and although I have found a way
using SPAWN to do it, maybe your procedures will be useful in some
future endeavour, so I dowloaded them anyways.
regards,
edwin
|
|
|
Re: Moving, Copying, Renaming Files using IDL [message #39680 is a reply to message #39666] |
Mon, 07 June 2004 13:39  |
b_gom
Messages: 105 Registered: April 2003
|
Senior Member |
|
|
Hi Edwin,
assuming you're using windows, I've posted a DLL at:
http://people.uleth.ca/~brad.gom/fileio/FileIO.zip
I think I wrote this for version 5.0. There are wrapper procedures for
copying, moving, deleting and renaming files, as well as creating and
deleting directories, reading the file date, and checking the free
disk space. I never got around to turning it into a DLM (there is no
need since version 5.6.), but it should work. Another option would be
to use SPAWN.
Brad
i-kant@shaw.ca (Edwin) wrote in message news:<cc362821.0406041434.174cd18d@posting.google.com>...
> I'm using IDL 5.5.
>
> After consulting Help files, I learned that you can create and delete
> files. You can also make new directories. However, does anyone know
> how to move, copy, and and rename files in IDL? Is there some pre-made
> procedure/function I could use?
>
>
> Thanks,
>
>
> Edwin
|
|
|
Re: Moving, Copying, Renaming Files using IDL [message #39689 is a reply to message #39680] |
Mon, 07 June 2004 08:27  |
i-kant
Messages: 14 Registered: June 2004
|
Junior Member |
|
|
Thanks guys, I finally got it working now.
Like you said, since I don't have IDL 5.5, I don't have those pre-made
functions, but I can just use IDL's SPAWN procedure to make DOS
commands for copying and so forth!
THANKS!!!!!!!
edwin
|
|
|
Re: Moving, Copying, Renaming Files using IDL [message #39697 is a reply to message #39689] |
Sat, 05 June 2004 05:38  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
David Fanning wrote:
> Edwin writes:
>
>
>> After consulting Help files, I learned that you can create and delete
>> files. You can also make new directories. However, does anyone know
>> how to move, copy, and and rename files in IDL? Is there some pre-made
>> procedure/function I could use?
>
>
> Maybe you didn't read far enough. I presume
> FILE_COPY and FILE_MOVE might be useful. :-)
>
> Cheers,
>
> David
>
I am not sure but I believe they were added in idl5.6.
Reimar
|
|
|
Re: Moving, Copying, Renaming Files using IDL [message #39699 is a reply to message #39697] |
Sat, 05 June 2004 12:00  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Edwin writes:
> OK, thanks David, and I just did a little bit of reading online to
> find out that FILE_MOVE also deals with renaming files. So FILE_COPY
> and FILE_MOVE would cover all three of my requests. However, I have
> IDL 5.5 only, and I think those two new routines were only added in
> version 5.6.
Oh, right.
> Do you know if getting IDL 5.6 is free for 5.5 users?
I'm pretty sure nothing is free these days. :-(
> If not, is there
> some way I can get the routines's source code and make my own
> procedure using them?
No, you will probably have to spawn an OS command, I guess.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Moving, Copying, Renaming Files using IDL [message #39700 is a reply to message #39697] |
Sat, 05 June 2004 09:19  |
i-kant
Messages: 14 Registered: June 2004
|
Junior Member |
|
|
> Maybe you didn't read far enough. I presume
> FILE_COPY and FILE_MOVE might be useful. :-)
>
OK, thanks David, and I just did a little bit of reading online to
find out that FILE_MOVE also deals with renaming files. So FILE_COPY
and FILE_MOVE would cover all three of my requests. However, I have
IDL 5.5 only, and I think those two new routines were only added in
version 5.6.
Do you know if getting IDL 5.6 is free for 5.5 users? If not, is there
some way I can get the routines's source code and make my own
procedure using them?
Thanks,
Edwin
|
|
|
Re: Moving, Copying, Renaming Files using IDL [message #39703 is a reply to message #39697] |
Fri, 04 June 2004 15:50  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Edwin writes:
> After consulting Help files, I learned that you can create and delete
> files. You can also make new directories. However, does anyone know
> how to move, copy, and and rename files in IDL? Is there some pre-made
> procedure/function I could use?
Maybe you didn't read far enough. I presume
FILE_COPY and FILE_MOVE might be useful. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|