Sign in to follow this  
Followers 0
yucatan

send file/send dir

6 posts in this topic

is it posseble to send a file over tcp?

is it posseble to send a whole dir over tcp ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#Yucatan...Look in the HELP file for TCP...

Edited by DjDeep00

Share this post


Link to post
Share on other sites

#Yucatan...Look in the HELP file for TCP...

k i did but i cant find anything about sending a FILE i did find how to send a VAR so letters etc...

Share this post


Link to post
Share on other sites

k i did but i cant find anything about sending a FILE i did find how to send a VAR so letters etc...

???

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Yes you can

you need a server on the other side though

and havc to pass three parameters

1) /FILE pathtofileontheserver

2) /CHK chunk(looping it for each chunk)

3) /ENDF

and you have to split he file in this way:

Func _Chunk($sString,$nSize)
    $aChunk[Int(StringLen($sString)/$nSize)+2]=[Int(StringLen($sString)/$nSize)+1]
    If IsInt(Number(StringLen($sString))/Number($nSize)) then dim $aChunk[Int(StringLen($sString)/$nSize)+1]=[Int(StringLen($sString)/$nSize)]
    for $i_=1 to $aChunk[0]
        if $i_=$aChunk[0] then
            $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1)
        Else
            $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1,$nSize)
        EndIf
    next
       Return $aChunk
EndFunc
Edited by torels

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites

Yes you can

you need a server on the other side though

and havc to pass three parameters

1) /FILE pathtofileontheserver

2) /CHK chunk(looping it for each chunk)

3) /ENDF

and you have to split he file in this way:

Func _Chunk($sString,$nSize)
    $aChunk[Int(StringLen($sString)/$nSize)+2]=[Int(StringLen($sString)/$nSize)+1]
    If IsInt(Number(StringLen($sString))/Number($nSize)) then dim $aChunk[Int(StringLen($sString)/$nSize)+1]=[Int(StringLen($sString)/$nSize)]
    for $i_=1 to $aChunk[0]
        if $i_=$aChunk[0] then
            $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1)
        Else
            $aChunk[$i_]=StringMid($sString,$nSize*($i_-1)+1,$nSize)
        EndIf
    next
       Return $aChunk
EndFunc

i dont fully understand how this code need to work.. can u explane how i use this ?

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  
Followers 0