You're only problem, Duncan, was that you didn't use quotes:

Your code:
USE y: \\$server.$path\$share

should work if it is:

USE Y: "\\$server.$path\$share"

Of course:

USE Y: "\\"+$server+"."+$path+"\"+$share

also works (as Darren pointed out).

The interesting thing about KiXtart is it allows you to insert single-dimensional objects into your string declarations via label.

$a = "hi"
$b = "$a how are you?"
($b comes out as "hi how are you")

However, you cannot use arrays like that:
$a[0]="hi"
$b = "$a[0] how are you?"
does not work.

COM object methods do not execute inside quotes, either.

Brian