Jump to content

FTPput file *.*


silvano
 Share

Recommended Posts

Few examples:

$Ftpp = _FtpPutFile($Conn, @Workingdir, 'C:\test') 
$Ftpp = _FtpPutFile($Conn, @Tempdir, 'C:\test')

Could work... ;)

Neo

don't work :lmao:

myscript is in c:\prova

the files for upload in: c:\tmp

can I upload the files from c:\tmp to remote host dir: /tmp/

$Ftpp = _FtpPutFile($Conn, @Workingdir, 'C:\test') <-- C:\test is local dir...

tks

Link to comment
Share on other sites

How about this, it comes with a Dialog to select the files:

$Files = FileOpenDialog("Choose file(s)", @WorkingDir, "(*.*)", 1 + 2 + 4)
    If @error then return -1
    $Files = StringSplit($Files, "|")
    If $Files[0] = 1 Then
             ; put ftpcommand here: $Files[1] contains path and filename
    Else
        For $i = 2 To $Files[0]
                ; put ftp-command here with $Files[1] contains path, $Files[$i] contains filename
        Next
    EndIf

Be aware I am no expert coder. No coder at all, some would say ...

Edited by florisch
Link to comment
Share on other sites

$Ftpp = _FtpPutFile($Conn, @Tempdir, '/tmp')

But you must have the /tmp folder shared on the destination place...

Neo

yes, I'have shared folder to remote host

but there is not a script same the dos commannd?

mput c:\tmp\*.*

to florisch

tks, but my script run automatically to schedule task for backup upload

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...