this errors out though...


const(_HKCUSMWCV ,"HKCU\Software\Microsoft\Windows\CurrentVersion")
const(_Desktop ,readvalue(_HKCUSMWCV+'\Explorer\Shell Folders','Desktop'))

? _HKCUSMWCV
? _Desktop

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


Quote:

ERROR : unknown command [Users\Desktop]!
Script: C:\Documents and Settings\wheelerc\Desktop\const.kix
Line : 0


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