Jump to content
Sign in to follow this  
Chinasmoker

About TCPSend

Recommended Posts

Chinasmoker

Hey,guys, I ve a question,If I want to send some files or directories from server to client ,How to write Tcpsend

eg Tcpsend ($socketon,"C:\windows"),Is that right?

Thanks


One is never too old to learn

Share this post


Link to post
Share on other sites
Nahuel

You can't send files with the TCP functions. That would send the string "C:\Windows"

TCPSend ( mainsocket, data )

Parameters

mainsocket The connected socket identifier (SocketID) as returned by a TCPConnect function.

data binary/string to be send to the connected socket.

Share this post


Link to post
Share on other sites
Chinasmoker

You can't send files with the TCP functions. That would send the string "C:\Windows"

Thank you

so ,I want to send files,how to do ,use third-party software?


One is never too old to learn

Share this post


Link to post
Share on other sites
SmOke_N

You can't send files with the TCP functions.

You can't?

What about FileRead()? And Maybe enum the directory with it?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Nahuel

You can't?

What about FileRead()? And Maybe enum the directory with it?

True.

What I meant is that he can't do it the way he wants to do it. That's a good workaround though..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×