Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




FTP

Quick links

About FTP
Windows FTP
Unix FTP
FTP commands
Technical Support

About FTP

FTP is short for File Transfer Protocol, this page contains additional information about the FTP command and help using that command in Unix and MS-DOS (Windows). See our FTP section in our dictionary for a complete definition on FTP.

Windows FTP

From the MS-DOS prompt or shell type in FTP, once typed in you will have access to the FTP command line. In this command line type:

open ftp.address.domain

Where address is the name of the server and the domain is the domain such as .COM, .NET... In addition, the IP address can be typed in, such as 255.255.255.0.

Once connected you will be asked for a username and password; if done successfully, you will have access to transfer files between computers.

Unix FTP

Unix FTP is used much like Windows; from a command prompt or shell, type in FTP, from FTP you should be able to log into a server, providing you have the proper access.

Index

Category:
Software

Companies:
Various

Related Pages:
Hyper Terminal
MS-DOS
Telnet
Unix

Resolved

Were you able to locate the answer to your questions?


FTP Commands

Depending upon the version of FTP and the operating system being used, each of the below commands may or may not work. Generally typing -help or a ? will list the commands available to you.

Command

Information
!Using this command you will have the capability of toggling back and forth between the operating system and ftp. Once back in the operating system generally typing exit will take you back to the FTP command line.
?Access the Help screen.
aborAbort Transfer
appendAppend text to a local file.
asciiSwitch to ASCII transfer mode
bellTurns bell mode on / off.
binarySwitches to binary transfer mode.
byeExits from FTP.
cdChanges directory.
cdupChange to parent directory on remote system
closeExits from FTP.
cwdChange working directory on remote system
deleDelete file on remote system
deleteDeletes a file.
debugSets debugging on / off.
dirLists files if connected.

dir -C = Will list the files in wide format.
dir -1 = Lists the files in bare format in alphabetic order
dir -r = Lists directory in reverse alphabetic order.
dir -R = Lists all files in current directory and sub directories.
dir -S = Lists files in bare format in alphabetic order.
disconnectExits from FTP.
getGet file from the computer connected to.
globSets globbing on / off.
hashSets hash mark printing on / off
helpAccess the Help screen and displays information about command if command typed after help.
lcdDisplays local directory or if path typed after lcd will change local directory.
listSend a list of file names in the current directory on the remote system on the data connection.
literalSends command line
lsLists files if connected.
mdeleteMultiple delete
mdirLists contents of multiple remote directories
mgetGet multiple files
mkdMake directory.
mkdirMake directory.
mlsLists contents of multiple remote directories.
modeSpecifies the transfer mode. Available parameters are generally S, B or C.
mputSent multiple files
nlstSend a full directory listing of the current directory on the remote system on the data connection.
openOpens address.
passSupplies a user password.
portSpecify the client port number.
promptEnables/disables prompt.
putSend one file
pwdPrint working directory
quitExits from FTP.
quoteSend arbitrary ftp command
recvReceive file
retrGet file from remote system.
remotehelp  Get help from remote server
renameRenames a file
rmdirRemoves a directory
sendSend single file
statusShows status of currently enabled / disabled options
traceToggles packet tracing
typeSet file transfer type
userSend new user information
verboseSets verbose on / off.

   TECHNICAL SUPPORT

How do I send and receive files once connected in MS-DOS FTP?

To get files from the server and place them in your current working directory, on the machine you are working, type:

get myfile.htm

Where myfile.htm is the name of the file you wish to get from the computer connected to.

To send a file from your computer to the computer you are connected to (providing you have proper rights and the file exists in the current working directory), type:

send myfile.htm

Where myfile.htm is the name of the file that exists in the current directory; if you cannot recall the name of the file, use the ! command to temporally get back to a MS-DOS prompt; once you have located the file name, type exit to get back to the location you left in FTP.

In MS-DOS FTP I am only able to send files in the directory that I typed FTP in.

Set the LCD, for example, if you want to send files that are in the C:\Windows directory, type:

LCD c:\windows

How do I download multiple files from an FTP server?

Use the mget command, which is short for multiple get. Using the mget command you can get multiple files by using wildcards. For example, " mget *.* " would get all files in the current directory.

By default, prompting would be enabled; if you wish to get all files without being prompted, use the "prompt" command to disable/enable prompting.

When attempting to connect to an FTP address, receiving  "10061" error

This error is caused when the server is refusing the connection.

Attempt to connect to an alternate FTP address.

If you are able to connect to other FTP addresses, it is likely the site generating the error 10061 is refusing to accept your connection because of security privileges or because it is not an FTP server.

If you are unable to connect to any address, it is likely an issue with the network or computer configuration.

  1. Ensure that the network configuration settings are properly setup as well as FTP rights.
  2. Verify that the firewall is properly setup to accept FTP access.

How to create a Windows FTP script

Create a text document with commands used when in FTP.  Below is an example of what such a script may look like:

open ftp.domain.com
username
password
cd public_html
dir
get file.txt
bye

The above script will log into the ftp site ftp.domain.com. Once connected, it will enter the username and then the password (substitute username for your username and password for your password). Once logged in, the script then goes into the public_html directory, gets a directory listing and then uses the get command to get the file called file.txt. Once the file is received, it logs off using the bye command.

Once the script file has been created, for example, if it was called script.txt, to execute this script with ftp you would type:

ftp -s:script.txt

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope