@echo off
rem  Rolls back the last update of "Upravlenie OOUCR" to the snapshot
rem  taken right before it (files + database).
rem
rem  ASCII only on purpose: cmd.exe reads this file in the console code
rem  page, not UTF-8, and Cyrillic here breaks apart into bogus commands.
chcp 65001 >nul
title Otkat obnovleniya: Upravlenie OOUCR

cd /d "%~dp0"

powershell -NoProfile -ExecutionPolicy Bypass -Command ^
  "Get-ChildItem -Recurse -File | Unblock-File -ErrorAction SilentlyContinue"

powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0rollback_update.ps1" %*
