Date: Mon, 5 Sep 2005 12:27:13 -0400
Reply-To: Arthur Tabachneck <art297@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@NETSCAPE.NET>
Subject: Re: File size on Windows.
Tir,
The following doesn't even compare with Richard's link but, in the event
that you can live with the information output by the MS dir command, then
you could just change your /b to /q.
For example, something like:
filename fh pipe 'dir /q /s c:\tir\ddir';
data fdir (drop=dir);
infile fh lrecl=300 truncover firstobs=6;
input date mmddyy8. @11 time $10. @23 dir $5. @28 size $10.
@38 owner $22. @61 name $40.;
if trim(upcase(dir)) ne '<DIR>' and date ne .;
run;
Art
----------
On Mon, 5 Sep 2005 17:12:35 +0530, Patnaik, Tirthankar
<tirthankar.patnaik@CITIGROUP.COM> wrote:
>Folks,
> Is there any way one can find the size of a file, and other
attributes on Windows? I use an anonymous pipe to take in the list of
files in a dir, and all it's subdirectories. I also have code to find out
some properties of a file. I'd like to get the size, owner, and other
attributes of each file in my dir. Any ideas how?
|