Skip to content

Commit

Permalink
added backup functionality for past arcdps dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmageddonLP authored May 23, 2023
1 parent 07cf728 commit 55d7716
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion GW2_ARCDPS_UPDATER.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,12 @@ else {
Invoke-WebRequest -URI $dll[0] -OutFile $dll[1]
}
Write-Host -ForegroundColor green "finished update`n"
}
#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

0 comments on commit 55d7716

Please sign in to comment.