home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / demos / 134 / pascal / freebyte.doc next >
Encoding:
Text File  |  1987-04-17  |  2.4 KB  |  43 lines

  1.                    Free Disk Space Accessory
  2.  
  3.                    Written in Personal Pascal
  4.                           Modified by:
  5.                           Robert Balay
  6.                         11 Sharolyn St.
  7.                        Sumter, SC. 29154
  8.                            74716,101
  9.                          (803) 494-3580
  10.  
  11.      The  enclosed source files will,  when  compiled,  produce  a 
  12. desktop accessory that allows you to check the amount of free disk 
  13. space  available  on your drives.   This is a useful  utility  for 
  14. those who use a terminal program, like Flash, which doesn't have a 
  15. provision for checking disk free space.
  16.      There are two versions enclosed.   FREEDR5M.PAS will  produce 
  17. an accessory that will work in High or Medium resolutions and will 
  18. show  the amount of free disk space in bytes for drives A  through 
  19. E.   The other version, FREEDR2.PAS will produce an accessory that 
  20. will  work in low or medium resolution and show only drives A  and 
  21. B.
  22.      To  call the accessory from an application,  or from the  GEM 
  23. desktop, access the desk menu and click once on 'Free Disk Space'.  
  24. A window will appear and show free bytes on each drive.   To check 
  25. another set of disks,  merely click on the move bar at the top  of 
  26. the window and the accessory will recheck each drive.
  27.      If you don't have two drives attached to the system, you will 
  28. get a dialog box asking you to "Insert Disk B into Drive A:".   If 
  29. you  don't like this set up,  you can modify the source  code  and 
  30. recompile.   The  procedure  that  controls  how  many  disks  are 
  31. accessed  is "Get_DF".   Simply remove a set of  instructions,  as 
  32. required.   The  width  and height of the window are  set  at  the 
  33. beginning of the source code as constants.
  34.      Credit  for most of the program should go to  David  Plotkin, 
  35. whose  Desktop  Clock in COMPUTE!'s Atari  ST  magazine,  February 
  36. 1987, Issue 3, Vol 2, No. 1, serves as a shell for this accessory.  
  37. Additionally, the routine to get the amount of free disk space was 
  38. written by _______________ and is in the public domain both on the 
  39. OSS  BBS and on CompuServe.   I merely made a few nips  and  tucks 
  40. here  and there,  threw away some fat,  created a long_integer  to 
  41. string  conversion  routine,  changed  the names  to  protect  the 
  42. innocent, and voila!  Hope it serves you well...  Keep in touch...
  43.