Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can an executable know its name?
Message
From
15/03/2005 11:13:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/03/2005 10:45:22
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00995951
Message ID:
00995967
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform