Sign in to follow this  
Followers 0
silvano

FTPput file *.*

8 posts in this topic

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

Share this post


Link to post
Share on other sites



@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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
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

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