Skip to content

Instantly share code, notes, and snippets.

@apollo2k4
Created May 21, 2019 09:20
Show Gist options
  • Save apollo2k4/0b8bf09f5d6d6a4aefed91742c97da11 to your computer and use it in GitHub Desktop.
Save apollo2k4/0b8bf09f5d6d6a4aefed91742c97da11 to your computer and use it in GitHub Desktop.
@ECHO OFF
rem Если нет файла восстанавливаем его из bak
if not exist adreg.exe goto copy_exe
:copy_exe
copy adregeg.exe.bak adreg.exe
rem если файла есть идём дальше
if exist adreg.exe goto backup
:backup
rem делаем резервную версию
if exist adreg.exe goto copy_bak
:copy_bak
copy adreg.exe adreg.exe.bak
rem Запускаемя
start adreg.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment