CALL USBCD
This page was last modified 20:34, 4 July 2021 by Mars2000you.

Contents

Effect

Changes the active folder inside the virtual USB device or the storage device connected to the USB port of the Rookie Drive.

Syntaxes

  • CALL USBCD ("<Directory>")

Only with storage devices:

  • CALL USBCD ("<Directory>/<Directory>") - Changes to the specified directory, relative to the current one.
  • CALL USBCD("/<Directory>/<Directory>") - Changes to the specified absolute directory. Note that the difference is an extra slash at the beginning of the specified directory chain.

Parameter

<Directory> is the name of the directory on the USB device. When omitted with a storage device, the name of the current active directory will be displayed.

Notes for storage devices:

  • Changing the current directory will unmount the currently mounted file, this is due to a limitation on how the underlying USB controller hardware works.
  • An alternative way to change the current directory (without mounting any file) is to go to the boot menu, enter the desired directory, and then pressing SHIFT + ESC (ESC alone will restore the previous directory and mounted file).

Examples

CALL USBCD ("GAMES")  'Changes to the GAMES directory
CALL USBCD ("..") 'Changes to the previous directory

Related to

CALL USBFILES, CALL USBMENU

Compatibility

RookieDrive BASIC