Subject Re: deleting files in a remote directory
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Thu, 9 Aug 2018 17:19:28 -0700
Newsgroups dbase.getting-started

On 8/9/2018 2:46 PM, Charlie wrote:
> I am trying this:
>
> new File().delete("c:\dbasewin\pictures-temp\*.jpg")
>
> This works if I name a particular filer.  But it does not work this way.  I want to delete all .jpg files in the directory.

delete() works on an individual file, as you've discovered.

Create an array of file names (take a look at a.dir() in the online
help), and then loop through the array ...

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm