Ysengrim Posted November 6, 2007 Share Posted November 6, 2007 Sorry but i seach endless on the FTP topic and found tons of text but i don't understand anything of itSo despared I asked to you guysI tried the download function :InetGet("http://users.telenet.be/bc_ysengrim/downloads/fgn.jpg, "C:\", 1, 1)i could understand it as a beginner and it worked also perfectly but to upload the file again (after making a change to it) i cant figure out what to do I even try to read the ftp.au3 file (but it is latin to me) and other postings toocan someone please help me how i can upload a file just using the functions out of the ftp.au3 in a language i can understandbecause i do not know the words like proxy and stuffIs it wrong to think if i can download a file with a simple command i can upload as well with a few easy commands?I sure hope someone is so polite to help me started and telling me to read the help files because i already does it for hours and i'm stuckedthank !!! Link to comment Share on other sites More sharing options...
TurionAltec Posted November 6, 2007 Share Posted November 6, 2007 Any hope of trying to get your script to drive the console based ftp? Additional commands you might need are: -StdoutRead -StdinWrite -run("ftp <options>") Open up a command prompt (start->Run->cmd) type "ftp -?" you get: Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host] -v Suppresses display of remote server responses. -n Suppresses auto-login upon initial connection. -i Turns off interactive prompting during multiple file transfers. -d Enables debugging. -g Disables filename globbing (see GLOB command). -s:filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts. -a Use any local interface when binding data connection. -A login as anonymous. -w:buffersize Overrides the default transfer buffer size of 4096. host Specifies the host name or IP address of the remote host to connect to. Notes: - mget and mput commands take y/n/q for yes/no/quit. - Use Control-C to abort commands. according to the -s option you can have the necessary commands in a text file to feed it. Run ftp (type "ftp" at the command prompt) You'll get a ftp> prompt, type "help" to get available commands. ! delete literal prompt send ? debug ls put status append dir mdelete pwd trace ascii disconnect mdir quit type bell get mget quote user binary glob mkdir recv verbose bye hash mls remotehelp cd help mput rename close lcd open rmdir type "help <command>" to get more information on a command Things you might need: open ftp.server.com (enter credentials) binary (enable binary transfer mode) cd /directory/subdir put c:\filename.ext bye (disconnect) Link to comment Share on other sites More sharing options...
koresho Posted November 6, 2007 Share Posted November 6, 2007 Another thing you can do is make a .cmd file and have your script execute it: Open Notepad (Windows+R, type in "notepad" and press enter) copy this over and edit the information inside to do what you are trying to do: ftp open www.myserver.com username password save it in the text file as "myfile.cmd" or whatever. Have your script do: ShellExecute("myfile.cmd") Link to comment Share on other sites More sharing options...
Ysengrim Posted November 6, 2007 Author Share Posted November 6, 2007 Thanks guys i will try to puzzle it out what you gave me Link to comment Share on other sites More sharing options...
Joon Posted November 6, 2007 Share Posted November 6, 2007 Why not just use FTP UDF. There is example also.http://www.autoitscript.com/forum/index.ph...&hl=Ftp.au3 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