|
-
Aug 22nd, 2003, 06:27 AM
#1
Thread Starter
New Member
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
-
Aug 22nd, 2003, 12:58 PM
#2
Sleep mode
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|