home *** CD-ROM | disk | FTP | other *** search
- {$A+,B-,D+,E-,F-,I+,L+,N-,O-,R-,S-,V+}
- {$M 5000,5000,10000}
- program free;
-
- uses
- testfile,uupcase,dos;
-
- var
- s : string;
- n : longint;
- b : byte;
-
- begin
- s:=paramstr(1);
- if s='' then getdir(0,s);
- s:=copy(s,1,2);
- upcasestring(s);
- b:=ord(s[1])-pred(ord('A'));
- n:=diskfree(b);
- writeln('Laufwerk ',s,' ',n,' Bytes frei');
- if n<0 then halt(1);
- end.
-