Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Losing a connection when concatenating vbCrLf

$
0
0
Hi,

I am developing a VB script to access a Unix server to run a series of commands and
ultimately execute a script. I am using the OstroSoft Winsock Component to make the connection
and then I am attempting to log in. The script runs fine when a issue SendData without concatenating
vbCrLf. The problem that presents is I am maintaining my connection (state = 7) which is good, but without the
carriage return / line feed I believe that I am just send a long unrecognized string to the server.
When I have the vbCrLf added the connection closes (state =0). I'm hoping that someone may be able to shed some
light on the issue or help me code it correctly. I am running on Windows 7.

ex. Winsock1.SendData dbrown & vbCrLf

Thanks
David

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>