Corrupted repo recreated
Something broke the whole repo, and now my commits are gone too it seems.
This commit is contained in:
commit
19d453b066
18 changed files with 41063 additions and 0 deletions
32
hosts_install_win.bat
Normal file
32
hosts_install_win.bat
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
:: Author: @vdbhb59, @FLOSSbOxIN @FbIN
|
||||
:: License: MIT, https://opensource.org/licenses/
|
||||
|
||||
:: This script needs administrator privileges.
|
||||
:: WARNING: consider disabling "DNS Client" service if your machine slows down.
|
||||
|
||||
@echo off
|
||||
|
||||
set "source=%~dp0hosts"
|
||||
set "target=%windir%\System32\drivers\etc\hosts"
|
||||
|
||||
echo.
|
||||
echo ==================
|
||||
echo # @FLOSSbOxIN #
|
||||
echo ==================
|
||||
echo.
|
||||
|
||||
if exist "%source%" (
|
||||
if exist "%target%" (
|
||||
attrib -r -s -h "%target%" > nul
|
||||
)
|
||||
|
||||
copy /y "%source%" "%target%" > nul
|
||||
attrib +r "%target%" > nul
|
||||
) else (
|
||||
echo Error, source file not found.
|
||||
)
|
||||
|
||||
echo Execution finished.
|
||||
echo.
|
||||
|
||||
pause
|
||||
Loading…
Add table
Add a link
Reference in a new issue