Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFileVersion Issue
Message
De
19/04/1999 09:28:53
 
 
À
17/04/1999 11:22:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00209200
Message ID:
00209631
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform