Hi, on http://www.coli.uni-sb.de/~eric/stuff/soft/specials/ you can now find
1. poweroff-boot.zip which is a quick and dirty hack of a boot sector which gives you 10 seconds to press ESC to reboot and if you fail to do so it tells the primary master harddisk to shut down and 5 seconds later the VGA to shut down. Useful for my old Linux which does not shut down the harddisk before trying to power off the PC. Also useful because my BIOS has the strange property of trying to spin up the harddisk at the moment at which it shuts down the ATX power supply when I use FDAPM POWEROFF (any idea how to fix this?). So I put the poweroff.bot boot sector in my MetaKern or Lilo boot menu as a "prepare for power off" menu item and then power off at the main power button manually when the screen goes to sleep. 2. free-disk-space-tester-freetest.zip which is a tool for batch programming as suggested by Bernd and Tyler. It returns the amount of free disk space in the errorlevel, and you can select the UNIT and the DRIVE through command line options (if you do not select a drive, the current drive will be used, and if you do not select an unit, unit will be 1024 bytes). If more space than 255 units is free, errorlevel is 255. If an error of int 21.36 (no special FAT32 support yet, so reported space is never > 2 GB) or in the command line happens, errorlevel is 0. Syntax example: FREETEST c: 5 returns space on C: in 1 MB units (255 if 255 or more MB) Unit codes are: 0 1kB / 1 4kB / 2 16kB / 3 64kB / 4 256kB / 5 1MB / 6 4MB (Higher values are possible but undocumented :-)) Both programs are public domain, do whatever you want with them but do not blame me if you encounter any problems. Binary size is 512 bytes for the boot sector (surprise surprise) and < 1024 bytes for the FREETEST tool. I think you can squeeze things like spinning down of other drives than the primary IDE master into the boot sector and add ATX poweroff code as well before the 512 byte limit gets you. Adding FAT32 detection and the ability to report > 2 GB free in FREETEST will either lead to a binary of 1025-2048 bytes of size or will require you to drastically cut down the help message. Both tools are 8086 / DOS 2.0+ compatible in current versions. Happy testing. Eric. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel