silvano Posted November 24, 2006 Share Posted November 24, 2006 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 Link to comment Share on other sites More sharing options...
NeoFoX Posted November 24, 2006 Share Posted November 24, 2006 @Workingdir could work in the dir where the script is located... Neo [center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center] Link to comment Share on other sites More sharing options...
silvano Posted November 24, 2006 Author Share Posted November 24, 2006 @Workingdir could work in the dir where the script is located...Neotks NeoFox,but I can't work the script in the same diryou give me please te script exampletks Link to comment Share on other sites More sharing options...
NeoFoX Posted November 24, 2006 Share Posted November 24, 2006 (edited) Few examples: $Ftpp = _FtpPutFile($Conn, @Workingdir, 'C:\test') $Ftpp = _FtpPutFile($Conn, @Tempdir, 'C:\test') Coud work... Neo Edited November 24, 2006 by NeoFoX [center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center] Link to comment Share on other sites More sharing options...
silvano Posted November 24, 2006 Author Share Posted November 24, 2006 Few examples: $Ftpp = _FtpPutFile($Conn, @Workingdir, 'C:\test') $Ftpp = _FtpPutFile($Conn, @Tempdir, 'C:\test') Could work... Neo don't work 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 More sharing options...
florisch Posted November 24, 2006 Share Posted November 24, 2006 (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 November 24, 2006 by florisch Link to comment Share on other sites More sharing options...
NeoFoX Posted November 24, 2006 Share Posted November 24, 2006 $Ftpp = _FtpPutFile($Conn, @Tempdir, '/tmp') But you must have the /tmp folder shared on the destination place... Neo [center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center] Link to comment Share on other sites More sharing options...
silvano Posted November 24, 2006 Author Share Posted November 24, 2006 $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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now