Skip to content

Instantly share code, notes, and snippets.

@kayasax
Created Feb 12, 2015
Embed
What would you like to do?
replace a version number
# replace versionnumber="xxx" whith versionnumber="yyy"
(gc C:\temp\config.xml) -replace '(newversion=)".*"' ,'$1"yyy"' # if you want to save the file add |sc c:\temp\config.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment