Results 1 to 4 of 4
Discuss Windows XP - Hosts File - Simple Batch File at the iPhone 3GS - Hackint0sh.org; Download : Batch File or create your own using notepad Code: @echo off echo. echo. ...
  1. #1
    Moderator Array vikram's Avatar

    Join Date
    Feb 2008
    Posts
    258
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Windows XP - Hosts File - Simple Batch File

    Download : Batch File

    or create your own using notepad
    Code:
    @echo off
    echo.
    echo.
    echo ---------------------------------------------------------------
    echo.
    echo             Patching hosts - XP
    echo.
    echo                                         - Vikram  16-Sep-2009
    echo.
    echo ---------------------------------------------------------------
    Rem Patch Hosts
    rem Vikram 16-Sep-2009
    if not exist %systemroot%\system32\drivers\etc\hosts goto NoFile
    attrib -r -s -h %systemroot%\system32\drivers\etc\hosts
    echo 74.208.105.171 gs.apple.com #ECID SHSH >> %systemroot%\system32\drivers\etc\hosts
    goto Finish
    :NoFile
    echo 74.208.105.171 gs.apple.com #ECID SHSH > %systemroot%\system32\drivers\etc\hosts
    :Finish
    echo.
    echo.
    echo.
    Administrative Previliges Required.
    Tested on Windows XP



  2. #2
    Respected Professional Array hquest's Avatar

    Join Date
    Nov 2007
    Location
    Jersey City, NJ / Curitiba, BRA
    Posts
    615
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    50

    Default

    Suggest you to restore original file attributes (hidden/read only/system) after file is modified or created. Not a big issue btw, code is clean and functional.

    Cheers.

  3. #3
    Rookie Array

    Join Date
    Oct 2007
    Posts
    12
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    can't restore =.= error 3002

  4. #4
    Super Moderator Array n1ckn4m3's Avatar

    Join Date
    Mar 2009
    Location
    USA
    Posts
    2,717
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    145

    Default

    Quote Originally Posted by keung007hk View Post
    can't restore =.= error 3002
    This is only for people who have their signatures stored on file with Cydia -- if you didn't elect for Cydia to make your life easier, this process will not work for you.

 

 

Similar Threads

  1. Replies: 234
    Last Post: 03-12-2012, 10:01 AM
  2. Replies: 9
    Last Post: 10-23-2009, 11:49 AM
  3. MacNN: Apps: Batch File Rename, AudioRefurb, iPhoto2Twitter
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 06-03-2009, 05:00 PM
  4. batch file for mac os to upload language?
    By khaledome in forum General
    Replies: 0
    Last Post: 09-27-2007, 12:13 AM
  5. Batch file for EASY hardware unlocking??
    By insomnia2020 in forum General
    Replies: 0
    Last Post: 09-08-2007, 10:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 04:15 AM.
twitter, follow us!