Jump to content

send file/send dir


Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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 ?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...