Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. @echo off
  2. findstr /c:"127.0.0.1 boringdeals.com" "c:\windows\system32\drivers\etc\HOSTS"
  3. IF ERRORLEVEL 1 (
  4.     XCOPY "C:\HostsAddIt.txt" "d:\" /y
  5. ) else (
  6.    XCOPY "C:\HostsDelIt.txt" "d:\" /y
  7. )
  8. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement