OS4Depot.net 20130227_1013
  Home Search Mirrors Contact Info Credits

 Readme data for Root » Utility » Script » flush.lha

Description: Flush all memory with OS4 Final
Install: flush.lha
Size: 814b 5
Version: 1.0
Date: 04 Mar 07
Author: Nick Clover
Submitter: James Carroll
Requirements: OS4 Final
Category: utility/script
License: Public domain
Distribute: yes
Min OS Version: 4.0
The "c:avail flush" command in OS4 Final is a bit funny. It doesnt seem to
flush all memory in one go, and needs to be executed many times in a row
to flush everything that can be flushed. Well, Severin / Nick Clover has
come up with a script to get around this.

Simply copy this script to c: , and then type "flush" in shell to free your
RAM in future. It will loop until its done.

Heres an example of what it looked like when I tried it just now:

4.data1:downloads> flush
Flushing...
Flushed: 6472 kb.
Flushed: 640 kb.
Flushed: 652 kb.
Flushed: 668 kb.
Flushed: 640 kb.
Flushed: 640 kb.
Flushed: 384 kb.
Flushed: 32 kb.

Free ram before flush: 241812 kb.
Free Ram after flush: 251780 kb.
ram freed: 9968 kb.

Isnt it neat?! Thank you Nick. :)

Note: Make sure the +s protection bit is set, so you can execute this script
by typing its name in shell, rather than "execute c:flush".

NOTE: I did NOT make this script. Thank Nick Clover for his work, not me!





Copyright (c) 2004-2013 Björn Hagström. All rights reserved.
OS4 and its logos are registered trademarks of Hyperion Entertainment