George,
thanks for heads up. I'm not currenlt using JustExt(), but will keep it in mind if I do.
thanks!
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!!
>>
>Hi Ken,
>
>Since you're using GetFileVersion(), I assume you're still using VFP 5.0 with Foxtools. The behavior you describe is the same in VFP 6.0 where the JustPath() function is part of the language. However, there are some issues to watch out for in connection with the JustPath(), JustExt() functions under VFP 5.0/Foxtools in connection with long file names. Be careful with filenames containing multiple periods. As I recall JustExt(), at least, has a problem with these.
Ken B. Matson
GCom2 Solutions