LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Content-Type: text/plain;

I have examples of various WinAPI routines, including DeleteFile and RemoveDirectory http://www.devenezia.com/downloads/sas/sascbtbl

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 news:3D6C691E.5040805@xtra.co.nz... > 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. > > Robin


Back to: Top of message | Previous page | Main SAS-L page