Jump to content

Upload The Txt-file


Recommended Posts

Hello people :think: ,

this is my source for my program:

#include <File.au3>
#include <FTP.au3>

$filec = _FileCreate("list.txt") 
$file = FileOpen("list.txt", 1)

$list = ProcessList()

for $i = 1 to $list[0][0]       
FileWrite($file, $list[$i][0] & @CRLF)   
next

$server = "ftp://axp.***.nl"
$username = "*****"
$pass = "******"
$port = "21"

$Open = _FTPOpen("FTP")
$Conn = _FTPConnect($Open, $server, $username, $pass, $port)
$Ftpp = _FTPPutFile($Conn, "C:\Program Files\Tijdelijke bestanden\***\list.txt", "ftp://axp.***.nl/List/list.txt")
$Ftpc = _FTPClose($Open)

I use the FTP Library from W0uter (http://www.autoitscript.com/forum/index.php?showtopic=12473&hl=)

But the file (list.txt) isn't uploaded to the FTP server :(

What am I doing wrong?

Edited by Noobster24
Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.
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...