English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 07 March 2018, 19:10   #21
ProfDrLuigi
Registered User
 
ProfDrLuigi's Avatar
 
Join Date: May 2012
Location: Germany
Posts: 22
Send a message via ICQ to ProfDrLuigi
I "enhanced" the Script a little bit:

MountADx.script
Code:
RequestChoice >ENV:ADFCHOICE "Insert disk" "Insert Disk to unit:" "1|2|3|4|5|6|7|0"
assign >NIL: ad$ADFCHOICE: exists devices
if not warn
	removedisk >NIL: UNIT $ADFCHOICE
	insertdisk >NIL: UNIT $ADFCHOICE $adx
	diskchange >NIL: ad$ADFCHOICE:
else
	mount >NIL: ad$ADFCHOICE: from devs:adf.ml
	removedisk >NIL: UNIT $ADFCHOICE
	insertdisk >NIL: UNIT $ADFCHOICE $adx
	diskchange >NIL: ad$ADFCHOICE:	
endif
UnmountADx.script
Code:
RequestChoice >ENV:ADFCHOICE "Remove disk" "Unit to remove:" "1|2|3|4|5|6|7|0"
assign >NIL: ad$ADFCHOICE: exists devices
if not warn
	removedisk >NIL: UNIT $ADFCHOICE
	diskchange >NIL: ad$ADFCHOICE:
endif
If you are using ToolsDeamon (its default in the ClassicWorkbench Package) you write the variable $adx this way to ENV:
Code:
echo [] >ENV:adx
execute S:MountADx.script
For unmounting a Unit:
Code:
execute S:UnmountADx.script
If you mount to a Unit which is already mounted with another ADF it will be ejected and the Selected ADF will replace it. Simple.
ProfDrLuigi is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using XFS to mount an ADF image from the shell Gaula92 support.Apps 8 15 April 2024 17:59
How to mount ADF / ADZ / DMS files using XFS Amiga1992 support.Apps 30 05 March 2018 16:57
How to mount ADF CB 3.9 amigatv support.Apps 19 25 November 2015 13:44
looking for Escape From Mount Doom [PD] ADF CritAnime request.Old Rare Games 1 02 December 2011 05:24
how to hide volumes in WB 3.1? Bamiga2002 support.Apps 6 18 September 2009 13:29

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:51.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08446 seconds with 13 queries