HTBasic Help
×
Menu
Index

Path Specifier

 
A path specifier in HTBasic is similar to an MSUS (Mass Storage Unit Specifier) in HP BASIC. It identifies a place where files are stored. Depending on your operating system, the necessary information to uniquely identify such a place includes: the device, address, volume, unit, and directory path list. A summary of the rules is given here.
 
Under Windows, a path specifier consists of an optional disk drive letter and an optional directory path. If the disk drive letter is omitted, the default disk is used. A directory path is composed of the names of the directories which form the path from the root directory "\", to the directory where you wish to access files. Each directory name is separated from the others with the backslash, "\", symbol. The rules for each directory name are the same as for a filename (File Specifier). If the directory path is omitted, the default directory is used.
 
For example, suppose that you wish to use drive "C:" and a catalog of the root directory "C:\" shows a directory named "HTB". Suppose that a catalog of "C:\HTB" shows a directory named "FILES.BIN". And suppose that it is this directory you wish to specify with a path specifier. The correct path specifier is "C:\HTB\FILES.BIN". If drive "C:" is the default drive, then the "C:" could be omitted. If directory HTB is the default directory, then the "\HTB\" could be omitted. Please read your operating system manual for a greater understanding of these concepts.