Skip to content

Commit

Permalink
backup hosts in "hosts.backup.txt" file
Browse files Browse the repository at this point in the history
COPY "%WINDIR%\system32\drivers\etc\hosts" "%WINDIR%\system32\drivers\etc\hosts.backup.txt"
  • Loading branch information
SeregaSPb authored May 12, 2017
1 parent f01f9be commit e7ec6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Win10optimizer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ GOTO RESTART
ECHO ********** Block hosts
REM ********** Блокировать нежелательные веб узлы в файл hosts

COPY "%WINDIR%\system32\drivers\etc\hosts" "%WINDIR%\system32\drivers\etc\hosts.bak"
COPY "%WINDIR%\system32\drivers\etc\hosts" "%WINDIR%\system32\drivers\etc\hosts.backup.txt"
ATTRIB -r "%WINDIR%\system32\drivers\etc\hosts"
SET HOSTS=%WINDIR%\System32\drivers\etc\hosts
FIND /C /I "www.msn.com" %HOSTS%
Expand Down

0 comments on commit e7ec6f1

Please sign in to comment.