Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Will FILE() always find a file in .EXE?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01396423
Message ID:
01396497
Vues:
70
>>>>>Yes FILE() will always find a file embedded in EXE as long as it run from inside EXE. If it's executed from external FXP/APP, it'll not see files inside EXE.
>>>>>
>>>>
>>>>Thank you, Sergey.
>>>
>>>Keep in mind that it'll also find a file with the same name outside of EXE on VFP search path if internal file is not present. IOW, it's impossible to tell if file is embedded or not.
>>
>>Yes, I understand. For me it is important that the .EXE program will find the file, no matter where. That is, I will probably place a copy of the file on the drive and include it in the .EXE. I want to be sure that the program will branch to the special procedure for this customer.
>
>Just some FYI's that come to mind during my previous testing with this.
>
>1. Assuming there is an embedded file in the EXE and an external one, you can force it to use the external one by fully qualifying the path to the file.
>
>2. The internal file can not be written to, so there is an inherent way to tell which one is selected via try... catch...
>
>3. You may be able to tell which one is selected by obtaining the full path to the file select using the DBF() function and if the folder does NOT exist (since it will specify the folder where is resides on the development maching, you can then tell that it is using the internal one.
>
>Hope this helps.

John,

Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform