I would then create a batch file called asftp. When I execute the asftp. I made the following changes to my original script to meet your needs. The second change occurs in the batch command that executes this FTP script. In the original script, I only used the -s parameter in my FTP statement to designate the name of the text file that contains the FTP commands that should be run. This time, I added the -i parameter to my FTP statement, which tells FTP to turn off any interactive messages that occur during a file transfer.
Not only does this get really annoying after the first transfer, it prevents you from running this batch file in unattended mode. So using this script would allow you to easily transfer all your files to your i5 box. But I do have a suggestion. The FTP get and put commands only transfer single files. To transfer multiple files, you can use the commands mget and mput.
For example, to move files named myfile , mynotes , and mystuff from the current directory of your computer, at the FTP prompt, enter:. You can also use a question mark?
To interrupt the series of transfers, press Ctrl-c , and FTP will ask you whether you want to continue. For example, to retrieve files named myfile1 , myfile2 , and myfile3 from another computer, at the FTP prompt, enter:.
If the files you're transferring are anything other than plain ASCII text files, specify a binary transfer before sending or receiving.
To do so, at the FTP prompt, enter:. Or add pause at the end of the batch file. But anyway, you first have to fix the problem I have shown in my answer. Add a comment. Active Oldest Votes. Martin Prikryl Martin Prikryl k 47 47 gold badges silver badges bronze badges. Hi Martin. Thank you for your answer.
Can there be a way I can use in this format..?? Again, the open command takes only hostname, nothing else. All the other information has to be provided using other means. Command-line ftp. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
0コメント