From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,80b9cab992bfa976,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-06-17 07:18:03 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.cac.psu.edu!icf.hrb.com!dbd From: dbd@icf.hrb.com (Douglas B. Dodson) Newsgroups: comp.sys.dec Subject: File sizes using Pascal on VMS... Message-ID: <1993Jun17.095412.20335@icf.hrb.com> Date: 17 Jun 93 09:54:12 EST Organization: HRB Systems, Inc. Hello all, We have two situations which have presented us with a small problem. This problem deals with using Pascal on a DEC VAX 4000 series running the latest version of VMS. First the situations: 1) A file exists on the disk and we wish to obtain the file size (both actual and allocated). We would like to do this without spawning off a command file and parsing the output. We have looked for a system call or library routine but can't seem to find any to fit the bill. The file on the disk is closed and the priveleges should not be a factor. Sounds like a simple problem, yet we can't find an "easy" way to do it. 2) The other situation is that we are copying a file to disk and wish to know the percent copied at various stages along the way. VMS subtracts off the entire size of the file even before the copying is complete. Since this file is being copied, this problem is a little more difficult. Remember we need to do this using Pascal on a VMS machine. If anybody can provide any help, it would be greatly appreciated. Thanks! - Doug - -- Douglas B. Dodson Internet: DBD@ICF.HRB.COM HRB Systems, Inc. State College, PA USA 16804 Disclaimer! =========== Any ideas or opinions expressed here do not necessarily reflect the ideas or opinions of HRB.