The AROS Archives(anonymous IP: 34.229.24.100,130) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu


 Categories

   o Audio (78)
   o Datatype (14)
   o Demo (26)
   o Development (224)
   o Document (22)
   o Driver (18)
   o Emulation (55)
   o Game (359)
   o Graphics (146)
   o Library (19)
   o Network (46)
   o Office (12)
   o Utility (176)
   o Video (20)

Total files: 1215

Full index file
Recent index file

Hosted by
aros exec
 Readme for:  Utility » Shell » gettools.i386-aros.zip

Gettools

Description: Get file disk or memory information
Download: gettools.i386-aros.zip       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 22kb
Date: 11 Nov 07
Author: Peter Hutchison
Submitter: Peter Hutchison
Email: pjhutch/pcguru plus com
Category: utility/shell
License: Freeware
Distribute: yes
FileID: 265
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 122  (Current version)
122  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

[Show comments] [Show snapshots] [Show videos] [Show content] [Replace file] 
Program: GetAvailMem, GetInfo, GetFileInfo 
Author: Peter Hutchison 


Introduction
------------

AmigaDOS is a very useful language but limited when it comes to scripts.
These programs get their information but instead of displaying them like
Avail, Info and List does, it sets variables, ready to be used by your
script programs. 

GetAvailMem
-----------

Format: GetAvailMem [CHIP|FAST|ALL]

Description: This little program will return available memory in a global
environment variable called: MEMORY.

Example:  1.RAM> GetAvailMem Chip
          1.RAM> Getenv memory
          920355
          1.RAM> echo $Memory
          920355
          
GetInfo
-------

Format: GetInfo <device> [ERR|UNIT|STATE|BLOCKS|USED|TYPE]

Description: This program will return information about a device and 
returns either a number or text in a variable called: INFO.
   
   Option      Result      Description
   ERR         Number      Number of soft errors on the device
   UNIT        Number      Results the unit number where device is
                           mounted
   STATE       Text        Returns the following states:
                           PROTECTED, VALIDATED, VALIDATING
   BLOCKS      Number      Returns number of blocks on disk
   USED        Number      Returns number of blocks used by data
   TYPE        Text        Returns the following types:
                           NODISK, UNREAD, DOSDISK, FFSDISK,
                           NOTDOS, KICKSTART, MSDOS.
                           
Example: 1.RAM> Getinfo df0: used
         1.RAM> Getenv info
         200
         1.RAM> Getinfo df0: type
         1.RAM> Getenv info
         DOSDISK
          1.RAM>

GetFileInfo
-----------
                                    
Format: GetFileInfo <file> [TYPE|NAME|PRO|SIZE|BLOCKS|COMMENT]

Description: Returns information about the file in an environment variable
called FILE. The options return the following:

   Option   Type     Description
   TYPE     Text     File type: FILE or DIRECTORY
   NAME     Text     Name of file
   PRO      Text     The protection bits (not working very well)
   SIZE     Number   The size of the file in bytes
   BLOCKS   Number   The size of the file in blocks
   COMMENT  Text     The file note attached to the file
   
Example:  1.RAM> GetFileInfo MyFile.txt size
          1.RAM> Getenv file
          4086
          1.RAM> 
          
Distribution:
-------------

This archive and its contents belong to Peter Hutchison but it is 
FreeWare. You may make as many copies as you wish and use it where
you wish. The source is included for Programmers.

   Files:  GetFileInfo.c     GetFileInfo
           GetInfo.c         GetInfo
           GetAvailMem.c     GetAvailMem
           Getinfo.txt
           











































Copyright (c) 2005 The AROS Archives All Rights Reserved
Contact us at: archives@aros-exec.org