UDP send in VBscript

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
PT
Senior Member
Posts: 147
Joined: Wed Apr 13, 2005 12:32 pm
Location: Hampshire.UK

UDP send in VBscript

Post by PT »

Hi

Does anyone know how to send udp in vbscipt.

I cannot seem to find much info about this on the web.

Pearl is able to do this but I wish to send from Housebot. It may be possible usin winsock. I have udp traffic being sent and indeed received when monitoring via a vb program.



I would like to send a comand like "avy134" to an ip address say 192.168.1.1 port 5000.
Regards

PT

If it isn't broke,fix it till it is!
Timoh
Advanced Member
Posts: 260
Joined: Thu Feb 02, 2006 12:56 pm
Location: Montreal - Canada

My guess...

Post by Timoh »

My guess is you'd need a command line tool that can manipulate and send packets. Then simply call the tool from a shell in vbscript.



I'd be very surprised if vbscript had much network capability built into it.



If I get a chance, I'll brush off a few books and see if I can find what I'm thinking of for a command line tool.



Tim
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

Also check out curl and the execute program device. Here's a post with a similar question.
Scott
PT
Senior Member
Posts: 147
Joined: Wed Apr 13, 2005 12:32 pm
Location: Hampshire.UK

Post by PT »

Scott/Timoh



Thanks for the reply.

Scott the reply you mention was infact to me.I do use cURL at the mo for http messages.Looking at their website It seems to list everything except udp :? .

Unless ,of course, you are aware of something different?
Regards

PT

If it isn't broke,fix it till it is!
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

PT wrote:Scott the reply you mention was infact to me.
Ha. I just remembered the discussion and didn't even look at who was posting :oops:



Yea, I guess curl is TCP only. Have you tried sending the command via TCP?
Scott
Post Reply