«   2025/04   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Archive
Today
1626
Total
8606122


Search
管理選單

Summer Memory

Windows 7/Vista hosts BAT批次修改範例 文章

  1. copy %windir%\system32\drivers\etc\hosts %windir%\system32\drivers\etc\hosts.bak  
  2. attrib -s -r -a -h %windir%\system32\drivers\etc\hosts  
  3. @echo 127.0.0.1  www.3721.com>> %windir%\system32\drivers\etc\hosts  
  4. @echo 202.133.237.13  hd.club.tw>> %windir%\system32\drivers\etc\hosts  
  5. @echo 202.133.237.13  www.hd.club.tw>> %windir%\system32\drivers\etc\hosts  
  6. attrib +s +r +a +h %windir%\system32\drivers\etc\hosts  


example:
echo (指定的IP) (訪問的網域)>> %windir%\system32\drivers\etc\hosts
2012/04/30 19:02 2012/04/30 19:02
Tag
,
分享鏈接
0 Comments