Prior to Windows 7, Notes was installed in c:\notes, so your code was satisfied after the first if condition - which is why your code worked before.
I would hazard the guess that, under Win 7, it now installs in 'c:\program files\lotus\notes\' .
If this is the case, as James replied, you would need to check using:
FILE('"c:\program files\lotus\notes\notes.exe"') etc.
In other words, using quotation marks within quotation marks - the inner ones allow VFP to understand that the spaces are past of the pathname and/or filemane.
>Any folders that have spaces in the name has to be enclosed with "".
>
>OR FILE(["c:\program files\lotus\notes\notes.exe"]);
>
>>I am using the following to locate the lotus notes executable "notes.exe".
>>
>>
IF FILE('c:\notes\notes.exe');
>>OR FILE('c:\lotus\notes\notes.exe');
>>OR FILE('c:\program files\lotus\notes\notes.exe');
>>OR FILE('c:\program files\ibm\lotus\notes\notes.exe');
>>OR FILE('c:\program files\ibm\lotus\notes\notes.exe');
>>
>>The code has worked perfectly until we deployed some Win7 PCs. So I added the location of the exe on the Win7 boxes:
>>
>>
OR FILE('c:\Program Files (x86)\IBM\Lotus\Notes\notes.exe');
>>
>>and that failed. After some reading, I thought perhaps the parens were a problem so I also added the short version:
>>
>>
OR FILE('c:\Progra~2\IBM\Lotus\Notes\notes.exe')
>>
>>But I still keep getting the ELSE error message that follows this code. I know that the exe is in the location listed. Any ideas?