Assign

From wiki.amiga.org
Jump to navigation Jump to search

   

Description

The Assign command assigns a user specified volume name to a directory or another volume.

 

Installation

Commands Icon.jpg
The Assign command file is installed in the SYS:C/ directory by default.

 

Versions

  Latest versions are 46.4 and 54.4

Updater Icon.png
Use the Updater utility to upgrade to and install the latest available version.


   


Can be made resident:

V46: Yes

V54: No


Command Line Usage

   

NAME,TARGET/M,FROM/K,TO/K,LIST/S,EXISTS/S,INHIBIT/K,DISMOUNT/S,DEFER/S,PATH/S,ADD=APPEND/S,
PREPEND/S,REMOVE/S,VOLS/S,DIRS/S,DEVICES/S,NOREQ/S

   


Usage is the same as Assign 37.4 with the following enhancements in V46 / 54:


FROM <filename> : imports assigns from a file. No existing assigns are removed or replaced, only multi-assigns are updated by adding missing assign targets. Returns the number of assigns that were created and updated.


TO <filename> : exports the current assigns to a file which can then be used with the FROM option.


PREPEND (V54 only) : Add an assign at the front of the assign list.


NOREQ : Turns off temporarily system requesters when doing the assigns.


When the LIST option is used:

- The VOLS, DIRS and DEVICES options can control the display of volume names,

 assign names and paths, or device names.
 
 For example "Assign LIST VOLS" will display only volume names
 and "Assign LIST VOLS DIRS" will display volume and assign names but not devices.


- Wildcards can be used to match volume/assign/device names.

 For example "Assign #?[0-9]#? LIST DIRS" will display only assign names that contain
 numbers.


INHIBIT <ON/OFF> : inhibits access to the specified device name if possible. Can be used together with the DISMOUNT option to temporarily remove a volume from the system.

For example:

Assign DH2: INHIBIT ON DISMOUNT will remove DH2: from the system until the next reboot.

Assign DH2: INHIBIT OFF will enable access to DH2: again if DISMOUNT wasn't previously used.