AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page
   Networked Database  Computer Support/Help/Discussion...   [870 / 1577] RSS
 From   To   Subject   Date/Time 
Message   Nick Andre    All   Dfree source code   July 26, 2023
 5:46 PM *  

Quick and dirty Freepascal program to report drive space free.

Used here for Darkrealms nightly reporting.

program dfree;
uses dos;

var mb : longint;
err : integer;
t : text;

begin
  writeln('Dfree 1.0/Win32 Copyright (c) by Nick J. Andre, Ltd.';);
  writeln;
  if paramstr(1)>'' then
   begin
    val(paramstr(1),mb,err);
    if (err=0) then
     begin
      if ((DiskFree(0) div 1024) div 1024)<=mb then
       begin
        writeln('Less than '+paramstr(1));
        assign(t,'DFREE.!!!';);
        (*$I-*) rewrite(t);
        if ioresult=0 then close(t);
       end
       else
        writeln('Greater than '+paramstr(1));
      end;
   end
   else
   begin
    writeln('Usage: DFREE [size in MB]';);writeln;
    writeln('DFREE creates DFREE.!!! if the disk space is less than 
specified.';);
   end;
end.

Nick

--- Renegade vY2Ka2
 * Origin: Joey, do you like movies about gladiators? (618:500/24)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0166 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.220106