Date: Wed, 28 Aug 2002 22:29:31 -0400
Reply-To: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Organization: MindSpring Enterprises
Subject: Re: WinAPI module to delete files
I have examples of various WinAPI routines, including DeleteFile and
You could combine those with FindFileFirst and FindFileNext functions.
Or you can pursue the little more complicated SHFileOperation function
which would need a routine statement that includes FDSTART. SAS Companion
for Windows highly recommended.
A windowed but more tidy easier solution might be
options noxwait xmin;
xmin is a newer option and minimizes any window created by the system
command which X invokes.
Richard A. DeVenezia
"Robin & Charmaine Templer" <Robin.Templer@xtra.co.nz> wrote in message
> I have a need for the modulen call to delete a series of files.
> Operating System: WinNt 4 Sp6
> SAS version 8.2
> I know I could use the call system('delete *.txt') with the noxwait
> option in effect, but have been asked for a more tidy solution. The
> ultimate objective is to remove directories (for which I have the api
> syntax) but I cannot do that untile the directory is empty.
> Any clues much appreciated.