Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\WINDOWS\system32\drivers\etc\hosts", ForReading)
Set objFileWrite = objFSO.OpenTextFile("C:\WINDOWS\system32\drivers\etc\hosts",ForAppending)
Set oRegEx = CreateObject("VBScript.RegExp")
Set aRegEx =...
Hello,
I want to scan the hosts file for a specific entry and then report back to me if it is there. If it isn't i want it to be entered. The following script works. If the entry is not located it enters it. If the entry is located it reports back.
Set objFSO =...
Hello,
I need to change the DNS configuration of users machines based on their circumstances. If they are using a VPN to access a page it needs to be one thing, if they are connecting through the office it needs to be another. I have managed to successfully do this using netsh for example ...
Hi guys, first post!
I've got a web page with some check boxes the idea being the user selects a check box and then selects a button to launch a script. Ideally I'd prefer it to be a combo box than a checkbox but i've not gotten round to learning combo boxes.
The code is as follows :
<script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.