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.謝謝您。