home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 26
/
amigaformatcd26.iso
/
-readerstuff-
/
nils-erik_skilnand
/
addrad_removerad
/
addrad
< prev
next >
Wrap
AmigaDOS Script File
|
1998-03-06
|
2KB
|
67 lines
.key Number
.bra {
.ket }
SetENV CO 1
If "{Number}" EQ ""
Lab Start
SetEnv count `eval $count+1`
SetENV Chip `Avail Chip`
SetENV Fast `Avail Fast`
SetENV Mem `Eval $Chip+$Fast`
SetENV Minne "1800000"
If $Mem NOT GE $Minne VAL
Echo "Out of memory..."
Wait 1
SetENV count `Eval $count-1`
UnSet argu
UnSetENV Co
Quit
Else
EndIf
Assign >NIL: EXISTS Rad$count:
If Warn
Echo >ram:ja "Rad$count: "
Echo >>ram:ja "Device = ramdrive.device"
Echo >>ram:ja "Unit = $count "
Echo >>ram:ja "Surfaces = 2 "
Echo >>ram:ja "SectorsPerTrack = 11 "
Echo >>ram:ja "SectorSize = 512 "
Echo >>ram:ja "Reserved = 2 "
Echo >>ram:ja "Buffers = 5 "
Echo >>ram:ja "BufMemType = 1 "
Echo >>ram:ja "BootPri = -1 "
Echo >>ram:ja "LowCyl = 0 "
Echo >>ram:ja "HighCyl = 79 "
Echo >>ram:ja "# "
Mount Rad$count: From ram:ja
Cd Rad$count:
Delete >NIL: Ram:ja
If $argu EQ 1
Skip hei
Else
Quit
EndIf
Else
Skip start Back
EndIf
Else
Set argu 1
Lab hei
If VAL $Co GT {Number} VAL
UnSet argu
UnSetENV Co
Quit
Else
Setenv Co `Eval $Co+1`
Echo "*ec*e[1A Rad disks left to create: `Eval ({Number}+1)-$Co`"
Skip start Back
EndIf
EndIf
;$VER: MountScript Version 1.1 By Smurf