Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can an executable know its name?
Message
De
15/03/2005 11:13:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/03/2005 10:45:22
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00995951
Message ID:
00995967
Vues:
19
>Hi,
>Where would I look at runtime to know the name of my VFP exe? What I want to do is provide the user with "about" info showing the name and version of the running exe. I assume I'll use agetfileversion() but I need to determine what the exe is called and located to use this. How does everyone else do this?
>
>I'm pretty sure I've done this in the past but for some reason I'm coming up blank. Thanks.
>
>Gary
local lcVersionInfo
Local Array arrVersion[1]
lcVersionInfo = ""
Agetfileversion(arrVersion, Application.ServerName)
If Type('arrVersion[4]')='C'
  lcVersionInfo = arrVersion[10]+' V'+ Alltrim(arrVersion[4])
Endif
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
Répondre
Fil
Voir

Click here to load this message in the networking platform