Results 1 to 2 of 2

Thread: NT4 VB .Net error (HELP)

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    1

    NT4 VB .Net error (HELP)

    Hi!

    I write this code in VB .Net:

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim a As String
    Dim wshNet As New IWshRuntimeLibrary.WshNetworkClass()

    On Error GoTo vege

    wshNet.MapNetworkDrive("h:", "\\donald\config\update\dat4")
    vege:

    FileCopy("h:\sdat.exe", "d:\3\sdat.exe")
    wshNet.RemoveNetworkDrive("h:")

    Shell("d:\3\sdat.exe /silent", AppWinStyle.NormalFocus)

    a = wshNet.ComputerName()
    MsgBox(a)


    End Sub

    On Windows XP it is good, but under NT 4.0 with SP6a write this error:

    com object with clsid {093FF999-1EA0-4079-9525-9614C3504B74} is either not valid or not registered


    Please help me!
    Thanks
    Krisztian

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Well , Registery structure in NT is quite different from the other available OSs . Try registering this component manually like so :


    regsvr32 c:\path\filename

    or try to find if NT is using another way of registering files in the reg .

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