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
In-Reply-To: <004901c6ff8a$2bafd070$830f7150$@net>
Content-Type: text/plain; format=flowed
SASL001@SAVIAN.NET replied:
>-----Original Message-----
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Steven
>Lolay
>Sent: Thursday, November 02, 2006 8:33 AM
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: Getting filenames & paths from NT directory
>
>Hi
>
>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?
>
>Cheers
>
>Steve,
>
>Check out Get File Info here:
>
>http://www.savian.net/utilities.aspx
>
>This provides just about everything available for file info. Pipe it to a
>text file and you should be good to go.
>
>Alan
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...
HTH,
David
--
David L. Cassell
mathematical statistician
Design Pathways
3115 NW Norwood Pl.
Corvallis OR 97330
_________________________________________________________________
Stay in touch with old friends and meet new ones with Windows Live Spaces
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us