I can see a real problem come to light..

One person may have MICROS~2 another may have MICROS~6..

Try this..
code:
$exe = ReadValue('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE','')
$ver = GetFileVersion($exe) ; -- Get version of executable for MS-Outlook
$pos_locat = INSTR($ver, '.') - 1 ; - Look for where the dot is
$verchk = SUBSTR($ver,1,$pos_locat)
IF $verchk = '10'
WriteValue('HKEY_CLASSES_ROOT\CLSID\{00020D75-000-0000-C000-000000000046}\Shell\Open\Command','', $exe+' /nopreview', REG_SZ)
ENDIF

HTH,

Kent

[ 13. March 2003, 14:46: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's