@powershell.exe -ExecutionPolicy Bypass -Command "$_=((Get-Content \"%~f0\") -join \"`n\");iex $_.Substring($_.IndexOf(\"goto :\"+\"EOF\")+9)" @pause @goto :EOF $ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop $exeName = Read-Host "What's the name of your main Petz/Babyz exe (without .exe)?" try { $d = [datetime](Get-ItemProperty -Path 'PetzA.exe' -Name LastWriteTime).lastwritetime Set-ItemProperty -Path "${exeName}.exe" -Name LastWriteTime -Value $d } catch [Exception] { Write-Error $_.Exception } Write-Host "exe updated successfully!"