Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetFileVersion Issue
Message
From
19/04/1999 09:32:30
 
 
To
19/04/1999 09:28:53
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00209200
Message ID:
00209634
Views:
23
Ed,

Sorry to post to George on your reply - my bad ... thanks for your input too!

Ken


>Hi George,
>
>My issue turned out to be the path I was passing to GetFileVersion() - not the function itself. My problem was that JustPath (also from Foxtools), has what I consider to be an inconsistent behavior - and it "got me".
>
>I've been using JustPath to "move up" folder levels, but discovered this.
>
>if lcPath = "C:\Myfolder\test", then JustPath(lcPath) = "C:\MyFolder" - with NO trailing backslash.
>however ....
>if lcPAth = "C:\test", then then JustPath(lcPath) = "C:\" - keeping the backslash. Once I adjusted for this possibility, my problem was solved. thanks for your input!!
>
>Ken
>
>
>>>>Hi,
>>>>
>>>>Anyone having a problem using GetFileVersion() from FOXTOOLS.FLL when looking at an .exe on an NT Server?
>>>>
>>>>TIA,
>>>Hi Ken,
>>>
>>>There shouldn't be, but again I don't have access to an NT server (yet). One possibility that comes to mind is that GetFileVersion() only works with 32 bit executables, DLLs, OCXs, and other compiled files. Are you sure that the file is 32 bits?
>>
>>FWIW, I tried it under VFP 5, both from an NT Server (NT Server Enterprise 4.0, Build 1381, SP4 128 bit) for a 32 bit executable on its local drive, and from a Win98 box (Win98 4.10.1998, all current Critical and Recommended updates applied from WindowsUpdate, and IE5 5.00.2014.0216IC) accessing the same NT Server across the network. GetFileVersion() worked fine in both instances. I looked at the VFP6.EXE installed in my Visual Studio directory.
Ken B. Matson
GCom2 Solutions
Previous
Reply
Map
View

Click here to load this message in the networking platform