Jump to content

Hashim

Members
  • Posts

    3
  • Joined

  • Last visited

Tech Info

  • Experience
    some_experience
  • System: some_experience

Hashim's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I understand what you're saying, but the scrpt in this case is just an example - the same script can be modified to be something perfectly legal, to add sites that you would want to block normally, such as unsuitable pornography sites, etc. The use in this case is just an example.
  2. Hi there, and thanks. I was wanting to edit the HOSTS file to add a list of known Adobe Inc. servers to prevent product activation. After looking around, I found a good well-written batch file which did the job, and then edited it a bit to suit my own purposes. My question now is, please can someone explain to me how the below code works, and break it down to me bit by bit? As mentioned above, I am very new to this code, yet am interested in learning it, or at least learning what the below code is telling the computer and how it is executing what I want. Thanks a lot in advance for any help, it's very much appreciated. :) Code removed.
  3. So I want to create my own batch file (.bat) which will edit a file by adding a line onto the bottom of it but not overwriting what is already in there. I have no experience writing in whatever language the .bat file requires (is it MS-DOS, or another language?), so guidance and patience is much appreciated. :) What I want to do is edit the existing hosts file located at C:\WINDOWS\system32\drivers\etc\hosts, but not overwrite everything within it, just add a line to the bottom of it while keeping what is already there. Please could someone post the code that I would need to do this, and if possible explain the code to me bit by bit, as I have an interest in programming languages and would love to know what I am asking the browser to do, and how exactly this works. I've been online to find out how this is done, but I can't find anything that actually works for me. Also, another question - can this same batch file that I am writing be used to edit the hosts file of any computer with the hosts file at that location? So, Windows XP, Vista, 7, and other OSes?
×
×
  • Create New...