Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE Version, agetfileversion....
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01102748
Message ID:
01102750
Views:
20
John,
SYS(16, 0)
Using that will give you the name and path of the currently executing application. It only works when run from an exe, so I usually do it like this:
	*JCJB*	Get the Build Number from the exe.
	IF AGETFILEVERSION(laVer, SYS(16, 0)) > 4
		this.TMcExeVersion = laVer[4]
	ELSE
		this.TMcExeVersion = 'In Development'
	ENDIF
HTH,
Chad


>Hi all, i just need to put the version number of my exe file, but i don't know how to locate the exe to target it. Some users has the exe in c:\myapp, other in f:\share\myapp and others i really don't know. There is a way to know where my exe is executing from?
>
>TIA.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform