Possibly a stupid question about winsock control 
Author Message
 Possibly a stupid question about winsock control

I am working on an NT/95/98 login script (using VBScript) that will be
run from a netlogon share whenever a user logs in to our NT domain.  I
need to have access to the machine's IP address, and have been trying
to use the Winsock control's LocalIP property.  Unfortunately, the
majority of the users' machines do not have the file mswinsck.ocx on
them, and even when I put this file into the winnt\system32 or
windows\system directory, I get an error when my script tries to
create an object of type MSWinsock.Winsock.  I have the mswinsck.ocx
in the netlogon share where my .vbs script is run from, too.  What do
I need to do in order to use the control?  I'm not opposed to writing
a program to copy the .ocx file down onto the local machine and
registering it, but I don't know what needs to be done.  Can anyone
help me?  What do I have to do to get this stupid thing working!!??!!

Thanks!!!

Carla Gaskins



Tue, 03 Apr 2001 03:00:00 GMT  
 Possibly a stupid question about winsock control
Carla,

To use any kind of COM component you will need to register it on the target
machine.  This is done with REGSVR32 for OCX's and DLL's.

It would also be useful if you said what your error message/code is.

John.

Quote:

>I am working on an NT/95/98 login script (using VBScript) that will be
>run from a netlogon share whenever a user logs in to our NT domain.  I
>need to have access to the machine's IP address, and have been trying
>to use the Winsock control's LocalIP property.  Unfortunately, the
>majority of the users' machines do not have the file mswinsck.ocx on
>them, and even when I put this file into the winnt\system32 or
>windows\system directory, I get an error when my script tries to
>create an object of type MSWinsock.Winsock.  I have the mswinsck.ocx
>in the netlogon share where my .vbs script is run from, too.  What do
>I need to do in order to use the control?  I'm not opposed to writing
>a program to copy the .ocx file down onto the local machine and
>registering it, but I don't know what needs to be done.  Can anyone
>help me?  What do I have to do to get this stupid thing working!!??!!

>Thanks!!!

>Carla Gaskins




Wed, 04 Apr 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Possibly a stupid question about winsock control

2. one possibly stupid question...

3. winsock connection - probably a very stupid question

4. Stupid question from a perhaps stupid beginner.

5. Stupid Stupid Question

6. Newbie question - possibly irritating

7. A Few Questions: ClipCursor(), SetPalette, possibly pointers, looking for Great Graphics Program

8. Possibly off-topic VBSCRIPT question.

9. Help stupid newbie question - formatting webgrid control?

10. Stupid Question re Data Control

11. ActiveX Controls, Stupid Question?

12. Stupid question on browser control

 

 
Powered by phpBB® Forum Software