Code:
Use $drive: $share /user:$StringUsername /password:$StringPassword

My first concern is that Kix is seeing "$Drive:" and not "$Drive" + ":"

Not sure what you mean in your second Q - SetOption('NoVarsInStrings', 'On') is the only valid syntax, and basically is an interpreter directive that changes how Kix handles the presence of "$" between single or double quotes. With it "on", the "$" is an ordinary character, with it "off" (the default), Kix treats the "$" as the special character that identifies a variable name. The var name is terminated by whitespace and select special characters. I don't recall if ":" is one of those special terminators.

Up to my eyeballs at the moment - maybe someone else can suggest changes for the USE statement to get you going..

Glenn
_________________________
Actually I am a Rocket Scientist! \:D