Solved

DISKFREE for large Disks

Posted on 1998-05-26
2
239 Views
Last Modified: 2012-05-04
I guess that under WIN95 and NT4.0 with large disks (free space more than 1 GB !) DISKFREE doesnt work correct.
For I have no disk with such a lot of free space, i can not check it.
If it is true, what can I do instead of DISKFREE ??
0
Comment
Question by:titz
2 Comments
 
LVL 1

Accepted Solution

by:
ssite earned 50 total points
ID: 1347973
Simple, go to sysutils.pas and look for diskfree. Create a new func called Largediskfree which does the same but the result is a double or an extended.

Let me know. :-)
0
 
LVL 1

Author Comment

by:titz
ID: 1347974
hallo ssite,
i think this works. but think of the range for longint : only till 2GB this will work. Therefore i have modified the function:
it returns the freesize not in bytes but in Kbytes !
thanks and regards

titz

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question