|
-
Oct 2nd, 2000, 09:32 AM
#1
Thread Starter
Member
its a very difficult Problem...
I hope that anybody can help me!
How can i shutdown one ,or all, Clients on a Network?
I have create a form..on this u can choose how many clients shutdown (select over checkboxes)...f.ex. i select checkbox 1 to 10 and press a command button, the programm should send over winsock the exitwindows code to each of the selected Clients!
I´ve tried this over 2 weeks..without a success..
Is there anybody outa there who can help me? i hope so...
cya
-
Oct 2nd, 2000, 10:29 AM
#2
I would also like to know if this can be done. If so - please let me know. Either by this message baord or my email [email protected]
Thanks
-
Oct 2nd, 2000, 10:32 AM
#3
Addicted Member
Don't know your age
But it either sounds like you are a network admin or a student at a school with a win98 network
-
Oct 2nd, 2000, 10:34 AM
#4
Thread Starter
Member
Yes that is possible
I have it!!!!
Wouhhh... work for 2 weeks..:-
the selectet Clients will shutdown, restart or logoff user ..
But i have only i runtime erorr 142..Hmmmm no idea what this should be!!
but it is really possible to control more than 20 clients in a network
-
Oct 2nd, 2000, 10:39 AM
#5
Frenzied Member
but it is really possible to control more than 20 clients in a network
Everything is possible.
But i have only i runtime erorr 142..Hmmmm no idea what this should be!!
When is this happening?
"Application-defined or object-defined error"
hmm... what's you doing man?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 2nd, 2000, 10:48 AM
#6
Thread Starter
Member
Runtime Error
Ok....I´ve selectet 3 clients per checkbox - Shutdown.
if i press the command button to procced the Shutdown sequence the clients shutting down and in the same moment a Runtime error Box appears 142!!!
Im able to shutting down but the program will close automaticly...
This is my problem!
-
Oct 2nd, 2000, 10:54 AM
#7
Frenzied Member
I don't get you, on wich computer does the error appear? on the 'host' or the clients?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 2nd, 2000, 11:15 AM
#8
Thread Starter
Member
Runtime Error
I appears on the Host..
BY the way..what is Runtime error 126?
-
Oct 2nd, 2000, 11:18 AM
#9
Thread Starter
Member
??
can i declare: Winsock1.SendData "reboot" for a reboot on a client and : Winsock1.SendData "shutdown" to shutdown
if the client programm is coded:
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Option Explicit
Const EWX_LOGOFF = 0
Const EWX_SHUTDOWN = 1
Const EWX_REBOOT = 2
Private Sub Form_Load()
Winsock1.RemoteHost = "195.96.55.169"
Winsock1.LocalPort = 1001
Winsock1.RemotePort = 1002
Winsock1.Bind
End Sub
Private Sub Winsock1_DataArrival(ByVal bytes As Long)
Dim comm As String
Winsock1.GetData comm
If comm = "reboot" Then ExitWindowsEx EWX_REBOOT, 2
If comm = "shutdown" Then ExitWindowsEx EWX_SHUTDOWN, 1
If comm = "Logoff" Then ExitWindowsEx EWX_LOGOFF, 0
End Sub
-
Oct 2nd, 2000, 11:31 AM
#10
Frenzied Member
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 2nd, 2000, 12:37 PM
#11
Thread Starter
Member
Runtime Error 126
MY form works in Debug mode but after compiling i get an
Runtime Error 126! What is this???
-
Oct 2nd, 2000, 01:34 PM
#12
Frenzied Member
Man, I'm not able to help you in any if you don't give me a decent discription of where the error occurs or what you're doing, not even what form!
Please make yourself clear otherwise I can't help you!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|