From 55d7716bb34eb1f9d822ea68539b0301f08ac97b Mon Sep 17 00:00:00 2001 From: ArmageddonLP <51726022+ArmageddonLP@users.noreply.github.com> Date: Tue, 23 May 2023 22:50:12 +0200 Subject: [PATCH] added backup functionality for past arcdps dlls --- GW2_ARCDPS_UPDATER.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GW2_ARCDPS_UPDATER.ps1 b/GW2_ARCDPS_UPDATER.ps1 index b8932fd..3f9ff22 100644 --- a/GW2_ARCDPS_UPDATER.ps1 +++ b/GW2_ARCDPS_UPDATER.ps1 @@ -37,4 +37,12 @@ else { Invoke-WebRequest -URI $dll[0] -OutFile $dll[1] } Write-Host -ForegroundColor green "finished update`n" -} \ No newline at end of file + #backup d3d11.dll within arcdps-backup by date + $arcWebsite = Invoke-WebRequest -Uri "https://www.deltaconnected.com/arcdps/x64/" + $arcLastModified = $arcWebsite.ParsedHTML.GetElementsByClassName('indexcollastmod')[2].innerText.Replace(":","-").Split(" ") + $backupPath = $folder+"arcdps-backup\"+$arcLastModified[0]+"_"+$arcLastModified[1]+"\" + New-Item -ItemType Directory -Force -Path $backupPath + Copy-Item $pathArcDps -Destination $backupPath +} +#start the game +Start-Process -FilePath “Gw2-64.exe”