Glenn,

Shouldn't this be
Case instr($Path, 'Word.exe')

or are you doing something else?