Is it possible to know, if a volume exists without having to live with the popup requester from DOS asking for the volume to be inserted?
As far as I can see, ExamineObjectTags do not come with a feature to suppress DOS requesters.
Sun, 2016-10-16 22:16
#1
Volume existence with no popup requester?
And how one could do it *without* C code?
As an example, when using a Python script and os.system()
Maybe we would need some CLI command to enable/disable this option.
You can use something like INFO command (or the function/code in the language used):
#info kdh1:
Discos montados:
Unidad Tamaño Usados Libres Lleno Errs. Estado Nombre Tipo DOS
KDH1: 26G 9.838M 16G 36% 0 Lect./Escr. Utilidades NGF\00
Volúmenes disponibles:
Utilidades: [Montado]
#info kdh11:
kdh11: objeto no encontrado
#
@elwood
You can make your own CLI command (script). Here is an example:
; AmigaDOS script
.key myvolume
.bra {
.ket }
IF {myvolume} NOT GT " "
ECHO "Error: No argument entered."
SKIP error
ENDIF
assign {myvolume} exists noreq >NIL:
if WARN
echo "Does not exist."
else
echo "Does exist."
endif
QUIT
LAB error
QUIT 5