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無提示 - -