sorry afraid my programming skills are very poor - basically just want to get version of outlook nad then say if it's this version then do this and if it's not then do something else - i havent looked at the else part as the initila bit doesnt work - dont get an error so syntax is ok - it's just what i'm asking probably. any help appreciated - thanks
set outlook = createobject("outlook.application")
If "outlook.application" = "11.0.0.8169" then
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFld = objShell.SpecialFolders("Desktop")
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "\Outlook.lnk") ' Name for Shortcut to add
objURLShortcut.TargetPath = "c:\program files\microsoft office\office11\outlook.exe" ' Path for shortcut
objURLShortcut.Arguments = "/importprf \\domain\netlogon\outdef.prf"
objURLShortcut.Save
End If
set outlook = createobject("outlook.application")
If "outlook.application" = "11.0.0.8169" then
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFld = objShell.SpecialFolders("Desktop")
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "\Outlook.lnk") ' Name for Shortcut to add
objURLShortcut.TargetPath = "c:\program files\microsoft office\office11\outlook.exe" ' Path for shortcut
objURLShortcut.Arguments = "/importprf \\domain\netlogon\outdef.prf"
objURLShortcut.Save
End If