this works... (wrapping with quotes)
Code:
 break on

const(_OS ,split(@ProductType)[1])
const(_CSD ,val(right(@csd,1)))
const(_ADMIN ,ingroup('@wksta\'+sidtoname('S-1-5-32-544'))-1+@INWIN)
const(_HKLMSCCS ,"HKLM\SYSTEM\CurrentControlSet")
const(_HKCUSMWCV ,"HKCU\Software\Microsoft\Windows\CurrentVersion")
const(_HKLMSMWCV ,"HKLM\Software\Microsoft\Windows\CurrentVersion")
const(_HKLMSMWNTCV ,"HKLM\Software\Microsoft\Windows NT\CurrentVersion")
const(_HKCUSMWNTCV ,"HKCU\Software\Microsoft\Windows NT\CurrentVersion")
const(_Desktop ,"readvalue(_HKCUSMWCV+'\Explorer\Shell Folders','Desktop')")
const(_StartMenu ,"readvalue(_HKCUSMWCV+'\Explorer\Shell Folders','StartMenu')")
const(_Favorites ,"readvalue(_HKCUSMWCV+'\Explorer\Shell Folders','Favorites')")
const(_MyDocuments ,"readvalue(_HKCUSMWCV+'\Explorer\Shell Folders','MyDocuments')")
const(_alldesktop ,"expandenvironmentvars(readvalue(_HKLMSMWCV+'\Explorer\User Shell Folders','Common Desktop'))")
const(_allstartmenu,"expandenvironmentvars(readvalue(_HKLMSMWCV+'\Explorer\User Shell Folders','Common Start Menu'))")
const(_LDAP ,'"LDAP://"+@domain+"/"+GetObject("LDAP://rootDSE").Get("defaultNamingContext")')


? _OS
? _CSD
? _ADMIN
? _HKLMSCCS
? _HKCUSMWCV
? _Desktop
? _alldesktop
? _LDAP


Function Const($Constant,$Value)
Exit Execute('Function ' + $Constant + ' $' + $Constant + '=' + $Value + ' EndFunction')
EndFunction

_________________________
How to ask questions the smart way <-----------> Before you ask