I'm having a problem coding a .HTA file, and I really need some help. I've been searching all over the place and I can't seem to find what I need to add to this code to make it run. I'm trying to get the HTA script (running javascript) to, utilizing a .BAT file as well, pull information from a list of websites that need to be added to the Forward Lookup Zones of my DNS Server, and add a New Host (A) to the newly created Zone. I need the batch file to pull from a pre-created .txt file that has all the websites that need to be blocked. The .txt file says, for example:
website.number.1.com
website.number.2.com
website.number.3.com
website.number.4.com
All the way through the 2000+ sites that need to be added to it. I want the batch file to add the zone website.number.1.com, add a host of 127.0.0.1, and then do the same thing for website.number.2.com, website.number.3.com, and so on throughout the list. I know you can edit pretty much all of the DNS from the CMD prompt, but is there a way to make it go down the list and add all of the sites in the .txt file?