Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer上传( mput )和下载( mget )多个文件自动在FTP传输

FTP or File Transfer Protocol is a useful utility that allows you to transfer several files between a workstation or client with the FTP server. FTP或文件传输协议是一个有用的实用工具,可让您转移的几个文件之间的工作站或客户端与FTP伺服器。 Although nowadays GUI FTP client programs such as WS-Ftp and FileZilla are very common, but DOS or command-line FTP interface comes in useful and handy as it’s free and especially when you don’t have Internet connection to download the advance FTP clients, as basic FTP functionalities are built-in into most operating system including Windows XP, Windows Vista, Windows 2003, Linux, Unix, FreeBSD and so on.虽然现在贵FTP客户端程式如WS - FTP和filezilla区段,是非常普遍,但DOS或命令行界面的FTP来在有用和方便的,因为它的自由,尤其是当你没有的网际网路连线下载预先的FTP客户,作为基本的FTP功能是内置在大多数的作业系统包括Windows XP , Windows Vista中, Windows 2003中,的Linux , UNIX的, FreeBSD和等。

In DOS or command line FTP, to transfer several files, you can use the commands mput (Multiple PUT) and mget (Multiple GET).在DOS或命令行的FTP ,转让的几个文件,您可以使用命令mput (多向)和mget (多获得) 。 These commands work exactly like put and get except the commands allow you to transfer multiple files in a single command by specifying the files that you want to transfer with wildcards such as * to get all files.这些命令的工作完全一样付诸表决,并得到除命令允许您转让多个文件,在一个单一的指挥通过指定文件您要转移与通配符,如*让所有的档案。

However, mget and mput will prompt user to choose Yes or No before each file is tranfered to or from the server.不过, mget和mput会提示用户选择是或否之前,每个文件是tranfered ,或从服务器。 It’s troublesome and time wasting if you have to upload or download a lot of files as you have to attend and pay attention to the FTP process and press Y for each and every file.它的麻烦和时间浪费,如果您要上传或下载了很多文件作为你有出席,并注意向FTP进程,并按下Y为每一个文件。

To avoid the situation and automatically transfer the files so that the FTP session can process unattended, use the prompt command before using the mput or mget commands.为了避免情况,并自动传送档案,使该FTP会话过程可以无人值守,使用迅速命令之前,使用mput或mget命令。 The prompt command toggles between prompting on, where ftp will prompt you to choose yes or no before each file is transfered, and prompting off, which will copy all files without prompting.提示命令之间切换,促使对,那里的FTP将提示您选择是或否之前,每个档案的移交,并促使小康,这将复制所有档案,不需提示。 By default, prompting is on.默认情况下,提示是对的。 So to continue to FTP transfer all files without asking, remember to issue prompt command before starting the transfer process.因此,要继续FTP传输的所有文件没有要求时,切记要的问题,迅速指挥出发之前转移的过程。 Ask it do not prompt before putting or getting the files, make sure that your existing files do have have the same file name as FTP will overwrite the existing files that exists on the destination directory automatically too.请问它不提示前,或取得的文件,请确保您现有的档案也有有同样的档案名称为FTP将改写现有的文件存在于目标目录自动太多。 The command is simple, just a single word “prompt”:命令很简单,只是一个字“提示” :

ftp> prompt的FTP >提示

Interactive mode off.互动模式。

FTP command line utility should return Interactive mode off, which is FTP will no longer prompting for instruction from users (prompting off) and will always assumes Yes to whatever actions, in case is get or put the file or overwriting. FTP命令行实用工具,应该返回互动模式小康,这是的FTP将不再提示的指示,由用户(提示关闭) ,并将始终假设是什么行动,在案件是GET或把文件或改写。 If key in prompt again will turn prompting on.如果在关键的提示,再次将促使对。 With prompting on, however, you can easily terminate the FTP file transfer session if the transfer might not work or might take too long by pressing Ctrl-C (^c or press and hold the Control and C keys simultaneously).与提示对,不过,您可以很容易地终止FTP档案传输会议,如果转让可能无法正常工作或可能需时太长,按下Ctrl - C (下^ C或按下并按住控制和C键同时) 。 FTP utility will ask:实用的FTP会问:

Continue with mput?.继续mput ? 。

Responding with the character n (for No) will stop the transfer process.回应与性格N (表示没有)将停止传送过程。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



6 Responses to “Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer” 6回应“上传( mput )和下载( mget )多个文件自动在FTP传输”

  1. Rolf Aske罗尔夫aske
    May 8th, 2007 02:27 2007年5月8日2时27分
    1

    I found this article very helpful.我发现,这条非常有帮助。 I have one problem doing the “mget” and that is that the script goes to “disconnect” and “bye” before the ftp been completed.我有一个问题,做“ mget ” ,那就是剧本去“断开”和“再见”之前的FTP已经完成。 How do I handle this?我要如何处理呢? Thank you.谢谢您。

    objMyFile.WriteLine (”prompt”) objmyfile.writeline ( “提示” )
    objMyFile.WriteLine (”mput ” & strFilePut) objmyfile.writeline ( “ mput ” & strfileput )
    objMyFile.WriteLine (”disconnect”) objmyfile.writeline ( “断开” )
    objMyFile.WriteLine (”bye”) objmyfile.writeline ( “再见” )
    objMyFile.Close objmyfile.close

    Set objFSO = Nothing设置objfso =无关
    Set objMyFile = Nothing设置objmyfile =无关

    ‘Run ftp script '运行的FTP脚本
    Set objShell = WScript.CreateObject( “WScript.Shell” )设置objshell = wscript.createobject ( “ wscript.shell ” )
    objShell.Run (”ftp -s:” & chr(34) & strFTPScriptFileName & chr(34)) objshell.run ( “的FTP - S的: ” &人权中心( 34 ) & strftpscriptfilename &人权中心( 34 ) )
    Set objShell = Nothing设置objshell =无关

  2. henry亨利。
    May 31st, 2007 10:50 2007年5月31日10时50分
    2

    Thanks for the ‘prompt’ tip to turn off prompting.感谢'及时'秘诀关闭提示。

  3. neXus联系
    January 19th, 2008 04:21 2008年1月19日4时21分
    3

    thanks谢谢 : )

  4. prabhjot
    February 4th, 2008 23:49 2008年2月4日23时49分
    4

    saved time, thanks alot for mput explanation.节省时间,感谢了很多mput的解释。

  5. John约翰
    July 12th, 2008 01:12 2008年7月12日1时12分
    5

    Thank you for the ‘prompt’ tip to turn off prompting.谢谢你为'提示'秘诀关闭提示。
    Extremenly helpful. extremenly帮助。

  6. Alberto阿尔贝托
    July 21st, 2008 03:54 2008年7月21日3时54分
    6

    I love you.我爱你。 I had to move over 5000 files and I was doing like Homer Simpson with the bird pressing the “Y” button automatically.我曾动议超过5000的文件和我所做的一样,荷马辛普森与鸟按下“ Y ”型自动按钮。

    Thank you.谢谢您。

Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

mput mput - - mget mget - - ftp mget mget的FTP - - mget no prompt mget无提示 - - ftp mput mput的FTP - - ftp mput no prompt mput的FTP无提示 - - mget prompt mget提示 - - mput no prompt mput无提示 - - mput * mput * - - mget yes to all mget是所有 - - mput mput - - rapidshare multiple rapidshare多 - - rapidshare multiple download rapidshare多个下载 - - mget yes mget是 - - mput without prompt mput没有提示 - - mput yes to all mput是所有 - - ftp mget no prompt 的FTP mget无提示 - - mget mget - - download multiple rapidshare files 下载多个rapidshare档案 - - downloading multiple files from rapidshare 下载多个文件从rapidshare - - mget without prompt mget没有提示 - - mget * mget * - - mput all files mput的所有文件 - - ftp mput yes to all mput的FTP是所有 - - ftp put overwrite 提出覆盖的FTP - - rapidshare ftp rapidshare的FTP - - rapidshare multi download rapidshare多下载 - - download multiple files from rapidshare 下载多个文件从rapidshare - - download multiple rapidshare 下载多个rapidshare - - HOW TO DOWNload multiple files from rapidshare 如何下载多个文件从rapidshare - - ftp mget yes to all mget的FTP是所有 - - rapidshare multiple downloads rapidshare多个下载 - - mget all files mget的所有文件 - - ftp mput overwrite mput覆盖的FTP - - ftp mget mget的FTP - - multiple rapidshare 多个rapidshare - - mget ftp mget的FTP - - mput prompt mput提示 - - mput yes mput是 - - all 全部 - - mput multiple files mput多个文件 - - ftp mput yes mput的FTP是 - - mput overwrite mput覆盖 - - mget interactive mget互动 - - downloading multiple rapidshare files rapidshare下载多个文件 - - mget overwrite mget覆盖 - - download multiple files rapidshare 下载多个文件rapidshare - - ftp mget without prompt mget的FTP没有提示 - - rapidshare multi rapidshare多 - - mget *.* mget *.* - - mget all mget所有 - - ftp mput prompt mput的FTP提示 - - mget no ask mget没有要求 - - mget noprompt mget noprompt - - ftp mget overwrite mget覆盖的FTP - - mget without asking mget没有要求 - - MGet download mget下载 - - how to download multiple rapidshare files 如何下载多个文件rapidshare - - mput all mput所有 - - mput no ask mput没有要求 - - mput interactive mput互动 - - multiple download rapidshare 多个下载rapidshare - - multiple downloads from rapidshare 多个下载rapidshare - - ftp upload multiple files FTP上传多个文件 - - ftp multiple put 多重的FTP提出 - - how to download multiple rapidshare 如何下载多个rapidshare - - mget windows mget的Windows - - mput noprompt mput noprompt - - mget mput mget mput - - multiple rapidshare downloads 多个rapidshare下载 - - ftp mget yes mget的FTP是 - - ftp put multiple files 提出的FTP多个文件 - - ftp mput mput的FTP - - prompt mget 提示mget - - mput ftp no prompt mput的FTP无提示 - -