Mail Archives: djgpp/2001/01/11/05:16:23
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 -