Skip to content

Instantly share code, notes, and snippets.

View shuantsu's full-sized avatar

Filipe Teixeira shuantsu

View GitHub Profile
@rrptex
rrptex / ver_rename.ps1
Last active November 6, 2025 02:42
No RAD Delphi 12.1 este script captura versão de um aplicativo e renomeia, copiando o mesmo para C:\Progs\Apps.
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\""