I have the following in powershell to rename
$version = "2.1.1.1"
But i want to make a copy or rename in the same directory as
myprogram_2.1.1.1.exe
The below doesnt work
Rename-Item -Path "C:\myprogram.exe" -NewName "myprogram.exe" + $version
Any help with this ?
.BaseName, not to the entire name [including the extension]. [grin]