Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code isn't finding file
Message
 
À
14/05/2012 09:59:37
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01543550
Message ID:
01543556
Vues:
70
I'm not sure I understand. I have used this command successfully for quite awhile:
OR FILE('c:\program files\ibm\lotus\notes\notes.exe');
(This is actually the case that works on my PC). Further, I created a copy of notes.exe in the folder
c:\program files (x86)\IBM\Lotus\Notes\
and then if I use the command
? FILE('c:\program files (x86)\IBM\Lotus\Notes\notes.exe')
in the command window it returns .T. (although my machine is NOT 64 bit).


>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?
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform