Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!aplcen!haven!uvaarpa!mcnc!ecsvax.uncecs.edu!utoddl From: utoddl@uncecs.edu (Todd M. Lewis) Newsgroups: comp.sys.amiga.tech Subject: Calculating blocks used by file(s) Message-ID: <1989Oct26.190532.3479@uncecs.edu> Date: 26 Oct 89 19:05:32 GMT Organization: UNC Educational Computing Service Lines: 21 Hello, net: A friend and I are working on a program which will end up copying lots of files to lots of floppies. We need to know how to calculate how many blocks a group of files will use on a floppy, including the overhead for directory entries, etc. We would like the user to be able to select a bunch of files and have the program be able to tell 1) if the files will fit on a given floppy, 2) how many blocks will be used, and 3) how many blocks will be left. (Ok, so 3 should be easy if you know 1 and two.) So how does one (or in our case, two) go about calculating such things. Your help is greatly appreciated. _____ | Todd M. Lewis Disclaimer: If you want my employer's ||\/| utoddl@ecsvax.uncecs.edu ideas, you'll have to || || utoddl@ecsvax.bitnet _buy_ them. |___ ("Prgrms wtht cmmnts r lk sntncs wtht vwls." --TML)