sambomb Posted May 2, 2014 Report Share Posted May 2, 2014 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.resDentro dele tenho uma "pasta" chamada Version e dentro dessa pasta o "arquivo" #1No "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" Quote Link to comment Share on other sites More sharing options...
kapiaba Posted May 2, 2014 Report Share Posted May 2, 2014 Olá, veja \samples\FILEVER.PRG y FILEVER.RC Você pode modificar o .rc usando o exemplo de C:\FWH..\SAMPLES\DBF2RC.PRG E incorpora o novo .rc ao seu sistema. Se entendi o que queres... abs, Quote Link to comment Share on other sites More sharing options...
sambomb Posted May 2, 2014 Author Report Share Posted May 2, 2014 Queria fazer com o RES ao invés de RC, RC é texto e sei que tem como... Quote Link to comment Share on other sites More sharing options...
kapiaba Posted May 2, 2014 Report Share Posted May 2, 2014 Não tem problema, você salva no .rc e usa o HBRC.EXE para transformar a .RES. Quote Link to comment Share on other sites More sharing options...
sambomb Posted May 2, 2014 Author Report Share Posted May 2, 2014 Onde acho esse HBRC.EXE? Quote Link to comment Share on other sites More sharing options...
kapiaba Posted May 2, 2014 Report Share Posted May 2, 2014 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, Quote Link to comment Share on other sites More sharing options...
kapiaba Posted May 2, 2014 Report Share Posted May 2, 2014 Olá, veja isto: http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=10464 http://fivetechsupport.com/forums/viewtopic.php?f=3&t=23395 http://forums.fivetechsupport.com/viewtopic.php?p=54118 http://scm.googlecode.com/svn-history/r49/trunk/scm/rotina.prg http://www.theusenetarchive.com/usenet-message-getfileversioninfo-with-messagebox-33990914.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.