||Re: deleting files in a remote directory
||Fri, 10 Aug 2018 10:42:56 -0400
As you probably surmised by now, the dBASE file object will only work with a
single file and will not support wildcards.
Others have suggested a purely dBASE approach which takes quite a big of
code and some additional knowledge working with arrays.
There is however a easier route.
Supplied with Windows are quite a few scripting COM objects.
You can make use of these using dBASE's OleAutoClient.
An example below of using FileSystemObject which does support wildcards.
More information on using the FileSystemObject is available on the below
Keep in mind the examples are not written for dBASE so you'll need to
convert them from VbScript.
Google "Scripting.FileSystemObject" and there are ton of other examples
written in multiple programming languages.
fs = new OleAutoClient("Scripting.FileSystemObject")
release object fs
"Charlie" wrote in message news:GsDE5pCMUHA.1828@ip-AC1E04A7...
I am trying this:
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.
Thanks for any help!