code:
$letter = 'G:'
$path = '\\yeg01-nts-04\it_drive'
Gosub mapdrive
exit 0

:mapdrive
$map = $map + 1
? 'Connecting to '+$path+' as '+$letter+' Drive'
Use $letter $path
Return

And take a look at the UDF Forum which contains a couple of 'map drive' UDFs. UDFs are preferred over GOSUBS.
_________________________
There are two types of vessels, submarines and targets.