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 我的数字生活论坛 . 。
Related Articles相关文章
- Slow sFTP Transfer Speed with SSH Connection (SSH2)缓慢SFTP发布传输速度与ssh连接( ssh2 )
- Sending Huge files Without Uploading Anything via BoxCloud派遣庞大的档案,不需上传任何通过boxcloud
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU)自动更新的WordPress到最新版本,与自动升级插件( wpau )
- Enable Copy and Transfer of Data with Zune to Use as Portable Hard Disk使复制和数据的传输与发行日期使用的便携式硬盘
- Sync and Backup Office Documents and Spreadsheets to Google Docs with DocSyncer同步和备份Office文档和电子表格Google文件与docsyncer
- Microsoft Released FTP7 for Windows Server 2008 RC0微软发布了ftp7用于Windows Server 2008 rc0
- Free 30GB Online Storage and Backup Spaces at Humyo 30 GB的免费在线存储和备份位humyo
- How to Allow FTP Users to Access to Out of Home Directory (chroot) Files and Folders如何让FTP用户访问到走出主目录( chroot来)的文件和文件夹
- Wise-FTP 3 Full Commercial Version Free Download with Activation Serial Key明智的FTP 3全面的商业版免费下载与激活串行的关键
- RapidLeech v2.2 Free Download rapidleech 2.2版本免费下载



















May 8th, 2007 02:27 2007年5月8日2时27分
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 =无关
May 31st, 2007 10:50 2007年5月31日10时50分
Thanks for the ‘prompt’ tip to turn off prompting.感谢'及时'秘诀关闭提示。
January 19th, 2008 04:21 2008年1月19日4时21分
thanks谢谢
February 4th, 2008 23:49 2008年2月4日23时49分
saved time, thanks alot for mput explanation.节省时间,感谢了很多mput的解释。
July 12th, 2008 01:12 2008年7月12日1时12分
Thank you for the ‘prompt’ tip to turn off prompting.谢谢你为'提示'秘诀关闭提示。
Extremenly helpful. extremenly帮助。
July 21st, 2008 03:54 2008年7月21日3时54分
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.谢谢您。