Drives, directories, paths and user areas

The location of a file is determined by one or more of the following pieces of information:

Drives are available for all filesystems. User areas are only supported by IDEDOS drives. Directories and paths are only supported by FAT drives.

You can specify any, all or none of the pieces of information above when naming a file. Any missing information is provided by the current default drive, user area or path, which can be changed using the %CD command (see later). When specifying locations, the user area must come first, followed by the drive, followed by a colon (:), followed by the path. For example, the following are all valid locations:

Locations can be included with filenames in any command that uses them (eg SAVE, LOAD, %CP; see files for more information).


Setting the default drive, user area or path

You can set the drive which is used by default to any you like; if you don't use this facility, then ResiDOS will use A: as the default drive, and 0 as the default user area. To set the default drive, user area or path, use the commands:

If you wish, you can make your preference permanent by adding the + character to the end of the command. For example, to make E: the default drive, and have ResiDOS remember this preference every time you switch on, use:

To make a path permanent, you must specify the drive to which it applies. Each drive has its own default path, so you can set permanent paths for multiple different drives. For example:


Creating and deleting directories

You can create directories with the %MD (or %MKDIR) command:

You can delete directories with the %RD (or %RMDIR) command. They must be empty before they can be removed:


Showing the current location

One final command that is available is %PWD, which simply prints the current working directory (ie the current user area, drive and path):


Back to the ResiDOS home page