Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cdonkin

  1. cdonkin

    Modifying the host file

    Thanks for the input but the character in red is \t which is a tabbed space in regular expressions. PHV - How would i get the second loop to run?
  2. cdonkin

    Modifying the host file

    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 =...
  3. cdonkin

    Modifying the host file

    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 =...
  4. cdonkin

    Change DNS Configuration

    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 ...
  5. cdonkin

    VBScript help

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>SGHE International UDC Demonstration...
  6. cdonkin

    VBScript help

    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...

Part and Inventory Search

Back
Top