home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-01-08 | 901 b | 52 lines |
- '
- ' *** DISKINFO by Volker Stepprath 9/7/92 ***
- '
- '
- Do
- Input "Device.....: ";DEV$
- If DEV$="" Then End
- Dir$=DEV$ : DEV$=Dir$
- INFO$=Space$(40)
- '
- DEV=Varptr(DEV$)
- IN=Varptr(INFO$)
- '
- Dreg(1)=DEV
- Dreg(2)=-2
- LOCK=Doscall(-84)
- '
- Dreg(1)=LOCK
- Dreg(2)=IN
- D=Doscall(-114)
- '
- UNLOCK=Doscall(-90)
- '
- '
- Print "Name.......: ";DEV$
- '
- Print "Errors.....:";Leek(IN)
- '
- Print "Drive......:";Leek(IN+4)
- '
- N=Leek(IN+8)
- If N=80 Then N$="Read only"
- If N=81 Then N$="Validating"
- If N=82 Then N$="Read/Write"
- Print "Status.....:";N;" ( "+N$+" )"
- '
- Print "Blocks.....:";Leek(IN+12)
- '
- Print "Blocks used:";Leek(IN+16)
- '
- Print "Bytes/Block:";Leek(IN+20)
- '
- Print "Disktype...: ";
- For I=24 To 27
- If Peek(IN+I)<>0 : Print Chr$(Peek(IN+I)); : End If
- Next I
- '
- Print : Print "Disknode...:";Leek(IN+28)
- '
- Print String$("-",30)
- '
- Loop