Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- findstr /c:"127.0.0.1 boringdeals.com" "c:\windows\system32\drivers\etc\HOSTS"
- IF ERRORLEVEL 1 (
- XCOPY "C:\HostsAddIt.txt" "d:\" /y
- ) else (
- XCOPY "C:\HostsDelIt.txt" "d:\" /y
- )
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement