Ftp Upload File to More Than One Directory Folder

Using FTP

FTP ("file transfer protocal") is a program bachelor on many computers at Niagara and elsewhere that allows you lot to re-create a file from ane calculator to another over a computer network.

To "upload" a file means to copy information technology from a "local" calculator (often, a personal computer whose keyboard you're using) to a "remote" estimator (often, a larger system such as Niagara's "cis"). To "download" is to re-create the file in the other management -- remote machine to local automobile.

Since virtually Niagara users of FTP utilize a personal computer as their local computer, such volition be assumed in the following discussion. Observe, however, that with minor modifications, the following is easily generalized, so that, east.1000., you could employ FTP to re-create a file from "cis" to, say, another Unix computer.

When y'all found an FTP connection between your PC and a remote reckoner, y'all usually must "login" to the remote computer. Thus, although there are exceptions (some systems permit "anonymous" FTP connections in social club to facilitate the exchange of public domain information and services), it'due south usually necessary to accept login access to the remote estimator, including username and countersign.

If your account on the remote reckoner has multiple directories, you may so utilise the "cd" control to change directories (if the file you wish to download isn't in your root directory/folder, or if the destination of the file y'all wish to upload is in a subdirectory/subfolder). WINDOWS version: Click ChgDir, then enter or click the advisable directory/folder.

Well-nigh files you will wish to upload or download will be ASCII text files. If you wish to transfer a binary file, yous must recollect to use a "binary" or "ascii" command to modify between file types as needed (i.e., the default is "ascii", so you lot really only need to change to practise a "binary" upload/download, or if you follow a "binary" upload/download with an "ascii" upload/download). An example of a binary file you might wish to upload/download is a ".gif" or ".jpg" graphic file for a World Broad Web page. WINDOWS version: click the appropriate ASCII or Binary optionbutton.

THE DEFAULT Disk Bulldoze and directory (folder) on your PC may not be what y'all want. Use the ftp command "lcd" (local change directory) to change the default bulldoze (and subdirectory/folder) on your PC. Examples (what yous blazon is underlined):

        ftp>        lcd a:\        changes the default directory (folder) to the                        root directory (folder) of the disk in drive A:     ftp>        lcd c:\letters        changes the default directory (binder) to the                          Messages subdirectory (folder) of the deejay in                          drive C:      
WINDOWS version: Click ChgDir, then enter or click the advisable (bulldoze and) folder.

Establishing Your FTP Connection

  • If you utilise the DOS version of FTP, start the program. You will then accept to employ an "open" command to plant your connection. For example, I use
                ftp>            open cis          
    to connect to "cis", and
                ftp>            open castor.cs.buffalo.edu          
    to connect to my account on the calculator with the Cyberspace accost "brush.cs.buffalo.edu".
  • Typically, y'all must follow the "open up" command with the entry of your username (userid) and password on the remote computer.
  • WINDOWS version: after starting up the FTP program, on the Session Properties brandish, on the Full general tab, enter the appropriate Host Proper noun/Address (eastward.1000., "cis" -- without the quotation marks), User ID, and Password, then click OK.

To Upload a File

  1. If non already done, establish the FTP connection to the remote calculator as discussed to a higher place.
  2. If necessary, use "cd" as described above to go to the correct subdirectory (binder) of your business relationship on the remote computer. This sets the subdirectory every bit the destination of the uploaded file. If the desired destination of the uploading file is the root directory (folder) of your business relationship on the remote computer and you haven't done a change of directory, y'all may omit this step.
  3. If necessary, employ "lcd" as described in a higher place to become to the right subdirectory (folder) of your PC (or, more generally, the local computer). This sets the subdirectory that is the source of the uploading file.
  4. To upload a file, use the "put" control. For example, if you have an ASCII file in your current directory (folder) whose name is Blah.TXT, use
                ftp>            put blah.txt          
    to re-create the file to the remote computer. Some versions of FTP will ask for a file name to be used with the uploaded file on the remote reckoner; others will automatically employ the same name.

    WINDOWS version: in the Local System half of the display, highlight the file you wish to upload, so click the arrow pointing from Local System to Remote Organization.

    Note: uploading a file often results in a garbage line being appended at the end of the uploaded file. This is hands removed by using a text editor such every bit VI.

To Download a File

  1. If non already done, establish the FTP connection to the remote calculator as discussed higher up.
  2. If necessary, use "cd" as described in a higher place to get to the correct subdirectory (folder) of your account on the remote computer. This sets the subdirectory as the destination of the uploaded file. If the desired destination of the downloading file is the root directory of your account on the remote computer and y'all haven't done a change of directory, you may omit this stride.
  3. If necessary, utilize "lcd" as described higher up to get to the right subdirectory of your PC (or, more than mostly, the local computer). This sets the subdirectory that is the source of the uploading file.
  4. To download a file, use the "go" command. For example, if your file is named LETTER.DAT on the remote reckoner, y'all can download information technology to the destination directory of your local calculator via
                ftp>            go letter.dat          
    Some versions of FTP will ask for a file name to be used with the downloaded file; others will automatically use the same proper name.

    WINDOWS version: In the Remote System one-half of the brandish, highlight the file you wish to download, so click the arrow pointing from Remote System to Local Arrangement.

Breaking Your FTP Connection

  • When you're finished with your FTP connection, use "close" to "logout" from the remote computer. You may, if you wish, continue using FTP and institute another FTP connection to another remote computer.

    WINDOWS version: click Close

  • When you lot're finished using FTP, apply cheerio or quit to exit FTP.

    WINDOWS version: click Exit

Back to Boxer's Home Page

williamsonbutfor.blogspot.com

Source: http://purple.niagara.edu/boxer/essays/soft/ftp.htm

0 Response to "Ftp Upload File to More Than One Directory Folder"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel