www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/11/05:16:23

Date: Thu, 11 Jan 2001 12:07:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: kim# <Kim AT lanek DOT freeserve DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Moving files around! HELP!
In-Reply-To: <93js3r$1a6q@newton.cc.rl.ac.uk>
Message-ID: <Pine.SUN.3.91.1010111120454.16536A@is>
MIME-Version: 1.0
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

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'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019