Hangar.La tienda de software del Amiga

cdiskstate 0.2

Check if disk is valid and such

Short:        Check if disk is valid and such
Author:       megacz@usa.com
Uploader:     megacz usa com
Type:         util/cli
Version:      0.2
Replaces:     util/cli/cdiskstate.lha
Requires:     see notes
Architecture: generic; m68k-amigaos

cdiskstate-0.2
---------------

---

This is 'cdiskstate', a tool that can tell if device is okay or not. Its
main purpose is to check if 'FastFileSystem' affected partition is vaild,
but it can tell even more.

---

NOTES:

Requires 68000+, OS 2.04+, 512 bytes of free memory

Proggy can be made resident.

---

NEWS:
     [14-May-2008]   0.2   Added possibility to print the return code,
                           so proggy can be used silently, even if it
                           does not exists.

---

USAGE:
  
         template:
                     cdiskstate dev:/a std/s
  
   rc explanation:
                   300 - unable to open dos v37
                   200 - error parsing args
                   100 - cannot allocate memory

                     6 - not a filesystem
                     5 - unable to lock media
                     4 - info not available
                     3 - structure is trashed 
                     2 - disk is being validated
                     1 - disk is write protected
                     0 - disk is fine(read/write)
  
        example a:
                     cdiskstate sys:
                     if $rc not eq 0
                     echo "there is something wrong with the disk!"
                     quit
                     endif
  
        example b:
                     cdiskstate sys:
                     if $rc eq 2
                     echo "disk is not valid!"
                     quit
                     endif

        example c:
                     failat 201
                     set executevar "`cdiskstate sys: std`"
                     if "$executevar" eq 2 val
                     echo "disk is not valid!"
                     quit
                     endif
                     unset executevar

---
megacz@usa.com

Gratis

Descargar 3 KB

Desde el Amiga: abre Hangar y busca cdiskstate.

Autormegacz@usa.com
Categoríautil/cli
Tamaño3 KB
Fecha2024-03-20
Parageneric; m68k-amigaos
Necesitasee notes
OrigenAminet