Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
i have 2 application 1 is for admin and 2 is for user. i want to shutdown & log off user system remotely. my database is in internet. so that when any user come online i can see him in my admin app , (showing user is online), now i want to shutdown any user who is online (remotely)
Posted
Comments
thatraja 10-Oct-13 6:11am    
using VB6 or VB.NET? And what have you tried?
[no name] 10-Oct-13 10:21am    
vb6 & sql, when user enter his username and password it will check on db and if it is correct user status will be on line on admins app...
[no name] 10-Oct-13 10:51am    
mailed a photo to you... in RAJA k..(google +)
thatraja 17-Oct-13 3:40am    
what?????

1 solution

Hi
If you have a IP Valid for any clients you can use this command:
shutdown -s -f -m \\"IP of remote machine" -t xx
This command can shutdown you client computer after xx second, but if you have not IP Valid you should write a method on client side application and run this command with shell from it. after that you can send shutdown message for your client.

Best Regards
 
Share this answer
 
Comments
[no name] 17-Oct-13 4:34am    
thanks bro.. but need some clarification...

i dont have a valid ip, how can i automatically generate user pc IP into my admin's app?
(run this command with shell from it.. what you mean..?
Aydin Homay 17-Oct-13 8:47am    
I suggest to you used command design pattern, however my mean is send shutdown message for your client, so you should run shutdown command with using shell when get this message from client.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900