@echo off
cd /D "%~dp0"
if exist ..\static\StaticDownloadLinks-w60-x86-5lg.txt (
  if exist ..\static\StaticDownloadLinks-w60-x86-alg.txt del ..\static\StaticDownloadLinks-w60-x86-alg.txt
  if exist ..\static\StaticDownloadLinks-w60-x86-glb.txt ren ..\static\StaticDownloadLinks-w60-x86-glb.txt StaticDownloadLinks-w60-x86-alg.txt
  ren ..\static\StaticDownloadLinks-w60-x86-5lg.txt StaticDownloadLinks-w60-x86-glb.txt
)
if exist ..\static\StaticDownloadLinks-w60-x64-5lg.txt (
  if exist ..\static\StaticDownloadLinks-w60-x64-alg.txt del ..\static\StaticDownloadLinks-w60-x64-alg.txt
  if exist ..\static\StaticDownloadLinks-w60-x64-glb.txt ren ..\static\StaticDownloadLinks-w60-x64-glb.txt StaticDownloadLinks-w60-x64-alg.txt
  ren ..\static\StaticDownloadLinks-w60-x64-5lg.txt StaticDownloadLinks-w60-x64-glb.txt
)
if exist ..\static\StaticDownloadLinks-w61-x86-5lg.txt (
  if exist ..\static\StaticDownloadLinks-w61-x86-alg.txt del ..\static\StaticDownloadLinks-w61-x86-alg.txt
  if exist ..\static\StaticDownloadLinks-w61-x86-glb.txt ren ..\static\StaticDownloadLinks-w61-x86-glb.txt StaticDownloadLinks-w61-x86-alg.txt
  ren ..\static\StaticDownloadLinks-w61-x86-5lg.txt StaticDownloadLinks-w61-x86-glb.txt
)
if exist ..\static\StaticDownloadLinks-w61-x64-5lg.txt (
  if exist ..\static\StaticDownloadLinks-w61-x64-alg.txt del ..\static\StaticDownloadLinks-w61-x64-alg.txt
  if exist ..\static\StaticDownloadLinks-w61-x64-glb.txt ren ..\static\StaticDownloadLinks-w61-x64-glb.txt StaticDownloadLinks-w61-x64-alg.txt
  ren ..\static\StaticDownloadLinks-w61-x64-5lg.txt StaticDownloadLinks-w61-x64-glb.txt
)
