Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if file exists only in a particular place
Message
De
04/10/2007 18:08:44
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
04/10/2007 18:06:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01258744
Message ID:
01258771
Vues:
13
>>>>>I want to check if an EXE exists, but I only want to look in the same directory of the EXE that is currently running (the one doing the checking). Thanks!
>>>>
>>>>if file(forcepath("other.exe",justpath(application.servername)))
>>>>
>>>>Cetin
>>>
>>>What is Application.ServerName? First part is MyCurrentlyRunningApp? What is the ServerName part?
>>
>>It worked well with just using this, so I'm guessing that the ServerName thing isn't anything that matters:
>>
>>
>>IF FILE(FORCEPATH('EMPS.exe', JUSTPATH('EMPS_Admin.exe')))
>>
>>
>>Thanks!
>
>Oh you hardcoded:) Switch back to application.servername so it wouldn't fail if someone changes the exe name:)
>Cetin

Ahhhhh! Now I get it. Application.ServerName is actually a system variable. Doh! Even better. Thanks!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform