Hi,
When creating an exe in PowerShell Studio, I'm trying to get the version number put in the file name so I don't overwrite old versions. Anyone know how you can do this.
Thanks.
Version in file name
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Version in file name
Use a name of Exename.xx.xx.xx
Create a post- build script that retrieves the version number of Exename.xx.xx.xx.exe
and renames the file.
(Get-Command "Exename.xx.xx.xx.exe").FileVersionInfo.FileVersion
will retrieve the version number.
You can take it from there.
Create a post- build script that retrieves the version number of Exename.xx.xx.xx.exe
and renames the file.
(Get-Command "Exename.xx.xx.xx.exe").FileVersionInfo.FileVersion
will retrieve the version number.
You can take it from there.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.