$LOCATEDRIVE$

$LOCATEDRIVE$ is assigned a value with the LOCATE function. LOCATE searches the user's system for a particular file, and $LOCATEDRIVE$ is assigned the value of the drive in which the file was located. This variable is similar to $LOCATEDIR$. However, it contains the drive value (one letter) only and not the directory value. Refer to the LOCATE command for more information.