I need to be able to programmatically change the version information associated with/contained within a file (ie: the stuff on the â??Versionâ?? tab when you right-click on a file in Explorer and select Properties)

aGetFileVersion will READ everything I need, but Iâ??ve found no easy way to SET/CHANGE the information. Obviously this isnâ??t built into VFP, so itâ??s going to be some kind of getObject call, I just am clueless as to where to look.

Re: aGetFileVersion / aSetFileVersion by Rick

Rick
Mon May 17 13:46:24 CDT 2004

Tracy,
There is nothing that I know of in VFP to change this, although there =
may be an API call. Note: Most virus checkers get pretty upset when they =
see a program changing an .EXE file, and depending on the vendor and how =
it's configured you may not be able to do this!

Rick

"Tracy Hunt" <insperatus@hotmail.com> wrote in message =
news:1ACC4CD0-923E-482E-8465-FBABEDAE8972@microsoft.com...
> I need to be able to programmatically change the version information =
associated with/contained within a file (ie: the stuff on the =
=E2=80=9CVersion=E2=80=9D tab when you right-click on a file in Explorer =
and select Properties).
>=20
> aGetFileVersion will READ everything I need, but I=E2=80=99ve found no =
easy way to SET/CHANGE the information. Obviously this isn=E2=80=99t =
built into VFP, so it=E2=80=99s going to be some kind of getObject call, =
I just am clueless as to where to look.

Re: aGetFileVersion / aSetFileVersion by Trey

Trey
Mon May 17 14:06:46 CDT 2004

Why? You can use a ProjectHook and Project object PEMs to set this stuff
automatically at the time the exe is built, if you need some sort of dynamic
version info.
Even if you find a way to do it after the exe is created, as Rick pointed
out, you probably won't be able to rely on it always working.

"Tracy Hunt" <insperatus@hotmail.com> wrote in message
news:1ACC4CD0-923E-482E-8465-FBABEDAE8972@microsoft.com...
> I need to be able to programmatically change the version information
associated with/contained within a file (ie: the stuff on the "Version" tab
when you right-click on a file in Explorer and select Properties).
>
> aGetFileVersion will READ everything I need, but I've found no easy way to
SET/CHANGE the information. Obviously this isn't built into VFP, so it's
going to be some kind of getObject call, I just am clueless as to where to
look.



RE: aGetFileVersion / aSetFileVersion by insperatus

insperatus
Mon May 17 16:01:09 CDT 2004

I'm not talking about the VFP generated .exe file. Actually, I want to set version numbers on the various support files (.dbf, etc.) that are distributed with apps (and this is not limited to FoxPro-ish files, either)

Of course, someone is going to point out that I can just open/inspect the file structure of DBFs, etc. That's fine for DBFs, however, there are other files the organization of which precludes a quick "header check" like can be done for DBFs

I realize this is going to be some getObject process, I just have no clue what to put after the "(" in the getObject.

Re: aGetFileVersion / aSetFileVersion by Rick

Rick
Tue May 18 08:53:18 CDT 2004

Tracy,
While there is a specific standard for storing version information in an =
.EXE, most file types don't store this information at all! e.g. There is =
no version information in a .DBF - it only has a last modified date =
field. Office files store versioning information, but as far as I know =
these are all unique to each file type, and are normally only updateable =
through the actual application. Also in these days of viruses, it's =
likely that some of this information is checksumed and verified in some =
alternate location, so the application can verify that it's data hasn't =
been tampered with! By trying to externally change this data you risk =
corrupting the files so the original application won't open it!

Perhaps if you could explain what in general you are trying to =
accomplish, you could get suggestions on a different approach.

Rick

"Tracy Hunt" <insperatus@hotmail.com> wrote in message =
news:77DE0827-24FD-4424-AB56-68F2DD642179@microsoft.com...
> I'm not talking about the VFP generated .exe file. Actually, I want =
to set version numbers on the various support files (.dbf, etc.) that =
are distributed with apps (and this is not limited to FoxPro-ish files, =
either).
>=20
> Of course, someone is going to point out that I can just open/inspect =
the file structure of DBFs, etc. That's fine for DBFs, however, there =
are other files the organization of which precludes a quick "header =
check" like can be done for DBFs.
>=20
> I realize this is going to be some getObject process, I just have no =
clue what to put after the "(" in the getObject.