Solved

Memory Checker (Megs)

Posted on 1997-11-16
3
289 Views
Last Modified: 2010-04-16
I would like to create a function that will display
how much megs you have left.  
example of usage in function called megsLeft
writeln('You have ',megsLeft,'left.');
This variable is declared as real (#.##), and the variable
stays in the memory throughout the program for tests, such
as if megsLeftVar < 80 then Halt;
   else installProg;

I can make the checkings myself, but i need the info obtained from the function to stay in the computers memory.

Thanks!
0
Comment
Question by:weinrj
3 Comments
 

Accepted Solution

by:
mes earned 50 total points
Comment Utility
Hello weinrj,

writeln('You have ', diskfree div (1024*1024), ' Mbytes left.');

Greetings,
MES

0
 
LVL 2

Expert Comment

by:omsec
Comment Utility
if you wanna get the free space of a drive is mes's answer correct ! You also can get some other memory areas like
conventional memory, xms, or ems. get the OMSEC - unit from my
homepage at www.geocities.com/SiliconValley/Peaks/1620

signed, Omsec
0
 

Author Comment

by:weinrj
Comment Utility
Adjusted points to 50
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
A procedure for exporting installed hotfix details of remote computers using powershell
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now