Is there a SetVersion equivalent to GetVersionInfo?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Could you tell me how to change a file's information such as description,
comments, version, etc. I know I could get all this using the
FileVersionInfo.GetVersionInfo but I am looking for the .SetVersionInfo
equivalent.

Thanks,
 
Could you tell me how to change a file's information such as description,
comments, version, etc.

If it's your own managed application, just change the assembly
attributes, usually found in the AssemblyInfo.[cs|vb] file.

If not, you need something like a Win32 resource editor. There's no
support for modifying binaries in the framework.



Mattias
 
Hi Mattias,

My application at run time would create a text file, for example, but I
would like to then add some comments to the comment field of this text file.

Is there no way to do that?

Thanks,

Mattias Sjögren said:
Could you tell me how to change a file's information such as description,
comments, version, etc.

If it's your own managed application, just change the assembly
attributes, usually found in the AssemblyInfo.[cs|vb] file.

If not, you need something like a Win32 resource editor. There's no
support for modifying binaries in the framework.



Mattias
 
My application at run time would create a text file, for example, but I
would like to then add some comments to the comment field of this text file.

Is there no way to do that?

Uhm, text files don't carry the kind of version information you
retrieve with the FileVersionInfo class. Only executables do.



Mattias
 
Version information is not a part of system file information. It's a part of
the file itself, so text files don't carry any version info.

Vagif


Zenu said:
Hi Mattias,

My application at run time would create a text file, for example, but I
would like to then add some comments to the comment field of this text
file.

Is there no way to do that?

Thanks,

Mattias Sjögren said:
Could you tell me how to change a file's information such as
description,
comments, version, etc.

If it's your own managed application, just change the assembly
attributes, usually found in the AssemblyInfo.[cs|vb] file.

If not, you need something like a Win32 resource editor. There's no
support for modifying binaries in the framework.



Mattias
 
Thanks for all you responses. Silly me. You are right that text files don't
have this sort of info.

Is there anyway to add a unique identifyer to a text file, other than the
name, that I could use to programatically identify it?

Vagif Abilov said:
Version information is not a part of system file information. It's a part of
the file itself, so text files don't carry any version info.

Vagif


Zenu said:
Hi Mattias,

My application at run time would create a text file, for example, but I
would like to then add some comments to the comment field of this text
file.

Is there no way to do that?

Thanks,

Mattias Sjögren said:
Could you tell me how to change a file's information such as
description,
comments, version, etc.

If it's your own managed application, just change the assembly
attributes, usually found in the AssemblyInfo.[cs|vb] file.

If not, you need something like a Win32 resource editor. There's no
support for modifying binaries in the framework.



Mattias
 
Back
Top