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:06:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/10/2007 18:00:34
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
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:
01258769
Vues:
11
>>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform