Click here to Skip to main content
15,894,405 members
Articles / Desktop Programming / Win32

Simple Version Resource Tool for Windows

Rate me:
Please Sign up or sign in to vote.
4.83/5 (65 votes)
3 Sep 2012CPOL9 min read 371.9K   27.4K   169  
A utility for creating version info on executable files without Resource Compiler
: Add version info resource with some strings and a resource file to verpatch.exe
: (a kind of self test)

: run in Release or Debug
:
set _ver="1.0.1.6 [%date%]"
set _s1=/s desc "Version patcher tool" /s copyright "(C) 1998-2009, pavel_a"
set _s1=%_s1% /s pb "for CodeProject; static libs"
set _s1=%_s1% /pv "1.0.0.1 (free)" 

set _rf=/rf #64 ..\usage.txt

: Run a copy of verpatch on itself:

copy verpatch.exe v.exe || exit /b 1

v.exe verpatch.exe /va /rpdb %_ver% %_s1% %_s2% %_rf% 

@echo Errorlevel=%errorlevel%

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions