Date: Sun, 5 Nov 2006 22:16:45 -0800
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: Getting filenames & paths from NT directory
Content-Type: text/plain; format=flowed
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Steven
>Sent: Thursday, November 02, 2006 8:33 AM
>Subject: Getting filenames & paths from NT directory
>We're thinking of archiving files off our directory which are older than 2
>years. I know u can use sas to give a list of files using PIPE but i can't
>seem to get it give me the whole pathname. I was going to use SAS to delete
>these files automatically.
>Any help please?
>Check out Get File Info here:
>This provides just about everything available for file info. Pipe it to a
>text file and you should be good to go.
While Alan's utility is cool indeed, I would suggest that you stop and
think about how you would use it.
Steve, you have a serious systems admin problem. You cannot afford
to do this process without some serious error-handling. You need to
think in terms of a language which will allow you to get at the
data features you need, and which will provide sufficient error-handling
that you can (1) verify copied files before deleting, and (2) resolve
problems if files cannot be copied for one reason or another.
I would not use SAS to do this. I think it would be easier and more
robust in Perl. Alan would probably recommend C# . Others might
suggest Python, VB, Ruby, etc...
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Stay in touch with old friends and meet new ones with Windows Live Spaces