Jump to content

Recommended Posts

Posted

hi,

sorry, but my english is not good.

Can I put all files to remote ftp for my local dir ?

e.g.:

$Ftpp = _FtpPutFile($Conn, 'C:\tmp\*.*', '/tmp') --> don't work

I use ftp.au3

tks

Posted

@Workingdir could work in the dir where the script is located...

Neo

tks NeoFox,

but I can't work the script in the same dir

you give me please te script example

tks

Posted

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

Posted (edited)

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
Posted

$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

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
×
×
  • Create New...