Jump to content
Fivewin Brasil

Editar arquivo RES pelo Fivewin/(x)Harbour


sambomb

Recommended Posts

Gostaria de saber se alguém conhece uma forma de atualizar o Version que está dentro de um RES.

Exemplo:

Tenho o arquivo C:\VersaoExe.res

Dentro dele tenho uma "pasta" chamada Version e dentro dessa pasta o "arquivo" #1
No "arquivo" #1 tenho as tags:

  • FILEVERSION
  • PRODUCTVERSION
  • File version
  • Product version

Gostaria de poder editar o valor dessas tags através de um exe, como por exemplo:

C:\MudaVersao.exe "C:\VersaoExe.res" "FILEVERSION" "0,0,0,1"

C:\MudaVersao.exe "C:\VersaoExe.res" "PRODUCTVERSION" "0,0,0,2"

C:\MudaVersao.exe "C:\VersaoExe.res" "File version" "1,0,0,0"

C:\MudaVersao.exe "C:\VersaoExe.res" "Product version" "2,0,0,0"

Link to comment
Share on other sites

Desculpe, errei o nome, melhor é usar o BRC32.EXE do Borland:

Usando a opção "-r" no BRC32, ele gera o .RES à partir de um .RC:
$(BCDIR)\bin\brc32.exe -r Alert.rc ---> gera o alert.res
Se se vc quiser adicionar um novo .RC dentro de um .EXE que já exista, se não me engano é só usar:
BRC32 -feALERTA.EXE alert.rc
abs,
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...