Re: file info

Phil Davis (phil_davis@MENTORG.COM)
Thu, 27 Feb 1997 22:30:28 GMT

On Feb 27, 1:57pm, Simon Lord wrote:
> Subject: file info
> Is there a way to get information about "any" file? I'd like to query a
> file and get its filesize, modification date, permissions etc....

You can get any Unix environment info you want like this:

put shell("ls") into myFileNames

Instead of "ls", use whatever line command you want. Whatever response Unix
would normally put on your screen will instead be passed to MetaCard and placed
into your target variable ("myFileNames" in the example above). You'll need to
parse the contents of the target variable to get at your desired info, but
*boy* can you ever get the info!

>
> --
> [---------------------------] Simon Lord
> [Important letters that.....] Database Engineer, CAE Electronics
> [contain no errors will.....] tel: (514) 341-2000 x3861
> [develop errors in the mail.] fax: (514) 340-5496
> [---------------------------] email: simonl@cae.ca
>-- End of excerpt from Simon Lord

-- 
Phil Davis
phild@infosynth.com
------------------------------
Information Synthesis, Inc.
A Knowledge Transfer Company
(503) 685-0306