Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What would a .bat file look like? in order to relay a message across a lan from Computer A - 192.168.1.60 to Server B - 192.168.1.7, in which the Server communicates with the computer to prompt once its network is available (without any user requiring to login to Server B). I've been looking around on google for some solutions, but I haven't been able to find anything useful.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Not sure exactly what messages you are trying to send, but you should check out the "net" command.

C:\> net help

http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/AdminTips/Network/NetCommands.html

All those command can be written in a batch file.

Also you may want to play with vbsrcipt, especially WMI object (Windows Management Instrumentation) on remote machines.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa389290%28v=vs.85%29.aspx

If you have more info about what you're trying to do I may be able to be more specific.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.