Page 1 of 1
I find function Volume exists
Posted: Wed Dec 05, 2018 4:32 pm
by sinisrus
Hello,
I'm looking for a function to know if a volume exists ?
Thank you
Re: I find function Volume exists
Posted: Wed Dec 05, 2018 11:51 pm
by p-OS
Exists() not only works with files, but also with directories and volumes or devices...
Re: I find function Volume exists
Posted: Thu Dec 06, 2018 10:06 am
by sinisrus
P-OS
not really, if you made Exists ("test:") you have requester for assign "test:"
Re: I find function Volume exists
Posted: Thu Dec 06, 2018 10:15 am
by jPV
I get a system requester asking to insert the volume, but at least Hollywood program continues and it doesn't make a "Hollywood error".
But yeah, it would be nice to get a "quiet" option to check if a volume is available. For example, the "If" shell command in MorphOS has a "NOREQ" option which suppresses error requesters and allows you to check existance of volumes quietly that way. Maybe a similar option to Hollywood's "Exists" command would be possible?
Re: I find function Volume exists
Posted: Thu Dec 06, 2018 4:18 pm
by sinisrus
@JPV
It's exactly that
Re: I find function Volume exists
Posted: Thu Dec 06, 2018 5:55 pm
by airsoftsoftwair
Code: Select all
- New: Added HaveVolume() command to check if a volume is available
Re: I find function Volume exists
Posted: Thu Dec 06, 2018 9:30 pm
by p-OS
Ok, tried under Win, there it worked...the requester asking is a Amiga typical feature (and in most cases a useful one)