Merge pull request #161 from joncave/batnewlines

PowerUp: Remove badly encoded new lines from .bat output
This commit is contained in:
HarmJ0y
2016-07-15 14:14:21 -07:00
committed by GitHub
+2 -2
View File
@@ -2668,8 +2668,8 @@ function Write-HijackDll {
# build the launcher .bat
if (Test-Path $TargetBatPath) { Remove-Item -Force $TargetBatPath }
"@echo off\n" | Out-File -Encoding ASCII -Append $TargetBatPath
"start /b $BatCommand\n" | Out-File -Encoding ASCII -Append $TargetBatPath
"@echo off" | Out-File -Encoding ASCII -Append $TargetBatPath
"start /b $BatCommand" | Out-File -Encoding ASCII -Append $TargetBatPath
'start /b "" cmd /c del "%~f0"&exit /b' | Out-File -Encoding ASCII -Append $TargetBatPath
Write-Verbose ".bat launcher written to: $TargetBatPath"