www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/09/09:32:52

Date: Tue, 9 Jan 2001 16:26:04 +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: C++ Help??????
In-Reply-To: <93f1nv$l7c@newton.cc.rl.ac.uk>
Message-ID: <Pine.SUN.3.91.1010109162405.22285A-100000@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 Tue, 9 Jan 2001, kim# wrote:

> I need to locate  a number of zip files in the c directory and move them to
> a folder.  Can someone please point me in the right direction.    I am now
> able to create the folder , i just need to know who to locate the zip files
> and move them.

You could use `findfirst'/`findnext' functions to find the files, and the 
`rename' function to move them.

`findfirst' and `findnext' are not portable, though.  If you want a 
portable solution, use `glob' or `opendir'/`readdir' and `fnmatch'.

- Raw text -


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