Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    1

    Unanswered: need help ..regarding vbs scripting

    i would like to know that whether is it possible to auto generate the pc number using vbs script ..
    Just like example ..my current pc name : subbeh
    and i want it to auto generate it like
    ComputerName : subbeh1
    ComputerName : subbeh2
    and so on .. please help

  2. #2
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    Re

    Hi

    i'm sertain that you cant get user pc name
    Security reson, but you can get his IP/adres
    System.Web.HttpContext.Current.Request.UserHostAdd ress

    For the server's MachineName you can do.
    System.Environment.MachineName.ToString()

    If the pc's are on your network, then you can do a reverse dns lookup on the
    request IP/address.
    and then add a number to get what you want.

    GrZ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •