Passing batch file variables over a network?

July 2, 2011 at 05:06:05
Specs: Windows 7
I'm trying to find a way to send batch file variables ranging from a few alphanumeric characters up to several hundred, over a network preferably using the TCP protocol, and capture them at the other end as variables in another batch file.
Now scouring the net, I see vague references to people doing similar things by calling Winsock, but all those that I've found so far seem to be fairly elderly approaches from the Windows98/NT days, so I'm wondering (using contemporary XP/2003/vista/7 flavors of MS Windows), is there a reasonably elegant way to pull this off?

Helper programs shouldn't be a problem as long as they're not bound by crazy licences, as are powershell scripts, but I'm trying to find a way without involving VB and high level language stuff.


See More: Passing batch file variables over a network?

Report •

July 5, 2011 at 11:16:01
What about a network share accessible by both batch files/remote machines where you can write your variables to a text file and pickup from the same file on the other end?

Report •

July 13, 2011 at 05:13:07
Unfortunately, the network connectivity between both ends is going to involve the internet, so opening a share is probably not practical. Interesting idea though - I hadn't considered using something else in the middle to act as a scratchpad. I'm currently playing around with netcat utilities which seem to show a lot of promise, but all ideas are welcome.

Report •
Related Solutions

Ask Question