  
 | 
  
  85025 packages online
 | 
 
 
 | 
  | 
 
 | 
 | 
 | 
 
| 
  No screenshot available
 | 
| Short: | Checks if a partition is validated 1.1 |  
| Author: |  zapek deckpoint.ch (David `Zapek' Gerber) |  
| Uploader: | zapek deckpoint ch (David `Zapek' Gerber) |  
| Type: | disk/misc |  
| Version: | 1.1 |  
| Architecture: | m68k-amigaos |  
| Date: | 1997-12-28 |  
| Download: | disk/misc/DiskState.lha - View contents |  | Readme: | disk/misc/DiskState.readme |  
| Downloads: | 1625 |   
  |  
NAME
    DiskState -- Checks if a disk is validated
INPUTS
    DiskState DISK/A,QUIET/S
DISK
    The disk you want to check. Can be a name (ie. Work:) or a device name (ie. DH0:).
QUIET
    No output.
RETURN CODES
     0         : Disk is validated or write protected.
     5 (WARN)  : Disk is not validated.
    10 (ERROR) : Couldn't get disk information.
EXAMPLE
    You could have this in your startup-sequence:
    C:DiskState dh0: QUIET
    IF WARN
        C:MakeDir RAM:ENV RAM:ENV/Sys   ;Disk is unvalidated, putting ENV: into RAM:
        C:Copy >NIL: ENVARC: RAM:ENV ALL NOREQ
        Assign ENV: RAM:ENV
    Else
        Assign ENV: DH0:ENV
        C:HDEnv         ;HDEnv is a little utility which updates ENV: from ENVARC:
    EndIf
Enjoy!
                                                                  Zapek
 |  
  Contents of disk/misc/DiskState.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 6954   10712  64.9% -lh5- ea39 Dec 25  1997 diskstate/DiskState
[generic]                 1939    4039  48.0% -lh5- e889 Dec 26  1997 diskstate/DiskState.guide
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    8893   14751  60.3%            Dec 27  1997
  |   
 |  
  | 
  | 
| Page generated in 0.01 seconds | 
Aminet © 1992-2024 Urban 
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |