Results 1 to 5 of 5

Thread: SetComputerName

  1. #1
    TheSarlacc
    Guest

    Question SetComputerName

    after using the SetComputerName API call, do i need to reset my box in order for the change to take effect, because it doesnt seem to work...

  2. #2
    Megatron
    Guest
    Works find for me.
    VB Code:
    1. Private Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (ByVal lpComputerName As String) As Long
    2.  
    3. Private Sub Command1_Click()
    4.     Dim sName As String
    5.     sName = "KISHAN"
    6.    
    7.     SetComputerName sName
    8. End Sub

  3. #3
    jim mcnamara
    Guest
    Unless you're running NT or Win 2000 Pro, because you need Admin to do this.

  4. #4
    TheSarlacc
    Guest
    so im guessing a reboot is necessary huh?

  5. #5
    Megatron
    Guest
    It worked without any rebooting for me.

Posting Permissions

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



Click Here to Expand Forum to Full Width