A word of caution on using $. The $ can in of itself be a variable, but it is not considered good practice to use it.
Take the following example:
break on
$="test"
$ ?
"\\Server\Users\@UserID$" ?
"\\Server\Users\@UserID$$" ?
get $_
If you assign a string or value to $, and then use sloppy coding for say, hidden shares, it will give you grief if using a KiX prior to 4.10 version. Assigned as a string,
Use "H:" "\\Server\Users\@UserID$"
would concatenate the @UserID and the $ as if it were:
"\\Server\Users\" + @UserID + $
The manual states that if a $ is used within quotes that it should be $$, as in:
Use "H:" "\\Server\Users\@UserID$$"
Don't take the above examples of proper coding since they are not. They are simply to demonstrate the issue of $ in quotes.
Check out Ruud's comment on the use of $ in a thread over at ScriptLogic.
intended behavior? "$=" creates a variable
<small>[ 20. February 2003, 05:02: Message edited by: LLigetfa ]</small>
Edited by kdyer (2005-05-25 11:13 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.