Last active
November 6, 2025 02:42
-
-
Save rrptex/7b7ae9693db3e8ad39c28a3a6e0f43b7 to your computer and use it in GitHub Desktop.
No RAD Delphi 12.1 este script captura versão de um aplicativo e renomeia, copiando o mesmo para C:\Progs\Apps.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| powershell.exe -ExecutionPolicy Bypass -Command "$f='$(OUTPUTPATH)'; $v=((Get-Item $f).VersionInfo.FileVersion -replace '\.',''); $b=[System.IO.Path]::GetFileNameWithoutExtension($f); $e=[System.IO.Path]::GetExtension($f); $n=$b + '_v' + $v + $e; $dest='C:\Progs\Apps'; Copy-Item -Path $f -Destination (Join-Path $dest $n) -Force; Write-Host \"✅ Deploy Sucesso: Arquivo copiado para $dest\nCom nome: $n\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment