Date: Thu, 11 Jan 2001 12:07:43 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: kim# cc: djgpp AT delorie DOT com Subject: Re: Moving files around! HELP! In-Reply-To: <93js3r$1a6q@newton.cc.rl.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 11 Jan 2001, kim# wrote: > I need to locate a number of zip files in the c directory and then move > them to > a specified folder . > Can someone please point me in the right direction. I am now > able to create the folder , i just need to know how to locate the files > and move/copy them to the desired place. I believe I already answered these questions in reply to your previous message. Was something wrong with what I wrote? Use the library function `rename' to move the files. Use `findfirst' and `findnext' to find the files in the original directory. If you want your program to be portable to Unix and GNU/Linux systems, use `glob' or `opendir', `readdir', and `fnmatch' instead to `findfirst' and `findnext'.