🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5067

How much of the free space of a device goes away after creating a new file on it?

#5067
From: MR
Date: Sun, 06 Nov 2005 22:41
25 lines
1573 bytes
I want to find out if there is enough space on a harddisk-partition
(FAT32 or NTFS) to copying some files into it.

Before trying to implement it I tried out manually (in the dos-box)
how much disk-space would go away if I create a new small file onto it
by doing
  echo >f:\tst.txt hello  

I was (and am) a little confused, that the free space on this
partition did not change at all.

(I supposed at least the cluster-size would go away...)

So my question:

How can I find out how much of the free space of a drive f: would go
away if I copy a file (from within a program) to it?

Also how much of the free space of f: would go away if I create a
directory on it?

Thanks a lot,

Michael
  
Technical Details
Message-ID: <hj0tm1da9kj6dd2bu8qkj46ecnpfth0gr6@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,50a6f477f82717f3,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: MR <>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How much of the free space of a device goes away after creating a new file on it?
Date: Sun, 06 Nov 2005 23:41:51 +0100
Message-ID: <hj0tm1da9kj6dd2bu8qkj46ecnpfth0gr6@4ax.com>
X-Newsreader: Forte Free Agent 3.0/32.763
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.57.6.161
X-Trace: newsgroups.borland.com 1131316912 84.57.6.161 (6 Nov 2005 14:41:52 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail