Anyone have a terse and elegant way to delete a file on disk when you know the path and filename ahead of time?
Thanks very much in advance!
I guess I'll just continue with this for now until the entire team decides to install the CSO libs.
dos_system("del " & filename);
<font class="small">Code:</font><hr /><pre>
extern long DeleteFileA(string pFileName);
public function file_delete(in ps_lpFileName)
auto n_rc = DeleteFileA(ps_lpFileName);
(n_rc == 1)? n_rc = E_OK:n_rc = E_GENERAL_ERROR;
Just put that in a compiled module some place and you are good to go [img]/images/graemlins/smile.gif[/img]
Insanity: doing the same thing over and over again and expecting different results
Very cool, you come through again Tony, thanks! ;-)