The Go DRIVEBUTTONS internal command produces a dynamic button that expands to show you a row of buttons representing the disk drives in your system. You can use these buttons to navigate from one drive to another.

By default, the command will produce a list of all disk drives in your system, but you can use the various optional parameters for the DRIVEBUTTONS argument to control which drives are shown, and also how they appear. You can also combine the command with some of the other Go command arguments to control how the generated buttons behave.

Controlling which drive buttons are shown

The following parameters control which drives are shown in the generated list:

To use multiple parameters, separate them with a comma. For example, to display only removable and CD/DVD drives, excluding drive P, the command would be:

Go DRIVEBUTTONS=removable,cdrom,-P

To display only non-empty removable drives, the command would be:

Go DRIVEBUTTONS=hideempty,removable

Changing what the drive buttons do when you click them

In a dual-display Lister the generated drive buttons normally apply to the current source file display. You can change this by combining the DRIVEBUTTONS argument with other arguments to the Go command that affect which file display is used:

Many people use these arguments to define two separate lists of drive buttons, one that always applies to the left-hand file display, and one for the right. For example, a toolbar with the following commands on it would list all fixed (internal) drives first, followed by all other drives, separately for both the left and right file displays. The buttons always apply to the left and right displays, irrespective of the current source and destination.

Go DRIVEBUTTONS=fixed OPENINLEFT
Go DRIVEBUTTONS=cdrom,network,removable,ramdisk OPENINLEFT
Go DRIVEBUTTONS=fixed OPENINRIGHT
Go DRIVEBUTTONS=cdrom,network,removable,ramdisk OPENINRIGHT

 

Note the use of a Spacer between the second and third buttons to cause the right-hand drive buttons to be right-aligned.

Multi-function buttons

The optional multifunc parameter for the DRIVEBUTTONS argument causes the generated drive buttons to be multiple function buttons (three-button buttons). Clicking them with the left mouse button will act as if OPENINLEFT were set, the right button will act as if OPENINRIGHT were set, and the middle mouse button will act as if NEW were set.

You can also use multifunctabs which is similar to multifunc, except the left and right mouse button functions will open a new tab on the appropriate side of the Lister.

For example,

Go DRIVEBUTTONS=multifunctabs,removable

Additionally, the following Go command arguments can be used in conjunction with DRIVEBUTTONS to modify the behaviour of the generated buttons.

Changing drive button appearance

The generated drive buttons will inherit the appearance settings of the Go DRIVEBUTTONS button that generates them. Therefore, if you wish to control whether drive buttons display images, labels, have colors, etc, you must edit the parent button.

 

The drive buttons generated by the button shown above will display images (icons for each drive), and a label to the right of each icon. If, for example, you did not want to show the drive icons, you would turn off the Show image option.

If drive buttons are configured to show only icons and no labels, drive buttons will draw small drive letters over the icons themselves.

You can override this to force it on or off if you want.

You can use the following optional parameters for the DRIVEBUTTONS argument to control the appearance of the generated buttons: