Jump to content
Sign in to follow this  
themax90

How do I connect to ftp and copy..

Recommended Posts

themax90

InetGet ( "ftp://site/test.txt", "test.txt", 1, 1)
$file = FileOpen("test.txt", 1)

If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

FileWriteLine($file, "Line1")
FileWriteLine($file, "Line2" & @CRLF)
FileWriteLine($file, "Line3")

FileClose($file)

FileCopy("test.txt", "ftp://site/test.txt", 1)

FileDelete("test.txt")

What I want to do is download Test.exe for a site then write in it, then upload it to that site. Can I do this? How?

Edited by Agent Smith

Share this post


Link to post
Share on other sites
t0ddie

depends on the site.

you can easily dl from any site using inetget

uploading, would require you to make a script that simulates you going to your site, entering your account and pass, and clicking the apropriate buttons or whatever you need to do, to upload your file.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

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  

×