comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Tips for IDL-istic file transfer...? Please help me.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Tips for IDL-istic file transfer...? Please help me. [message #70842 is a reply to message #70828] Mon, 10 May 2010 04:18 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Mon, 10 May 2010 02:01:09 -0700 (PDT), Harry Kim
<kim4ecohydro@gmail.com> wrote:

> "I want to move the files in these folders into one FOLDER named
> '2000-2008'."

If there is no danger for duplicate filenames, you can do something
like this (test it first!!):

source=file_search('C:\tmp\200?.??.??\','*.*')
ind=where(stregex(source,'C:\\tmp\\200[0-8]') ne -1,n)
source=source[ind]
path='C:\tmp\2000-2008\'
file_mkdir,path
file_move,source,path+file_basename(source)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Possible to get name of current procedure from within procedure?
Next Topic: SST data

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:29:53 PDT 2025

Total time taken to generate the page: 0.00234 seconds