Jump to content

How Upload File


 Share

Recommended Posts

Sorry but i seach endless on the FTP topic and found tons of text but i don't understand anything of it

So despared I asked to you guys

I 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 too

can someone please help me how i can upload a file just using the functions out of the ftp.au3 in a language i can understand

because i do not know the words like proxy and stuff

Is 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 stucked

thank !!!

Link to comment
Share on other sites

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

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

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...