Edit this page Lock this page References to this page History of this page Home Page Recent Changes Upload file attachments Search Site Administration Help Guide

ftp_command_line

up one level to the FTP parent page


A command line FTP client has been included in all versions of Windows released since Windows 95. For those not familiar with this interface, some notes are listed below.

First, open a Command Prompt through the Start Menu. In Windows 9x, this is called the MS-DOS prompt. Here are some basics for working with the Windows Command Prompt:

Using FTP from the command line:

As of 5-June-2002, the ftp server software running inside the Tivo only supports a very basic command set. It is not possible to make new directories through and ftp session, telnet must be used for that. Some ftp servers allow you to change the properties of the files on the server. Again, telnet must be used to do this instead.

Below is a complete listing of all commands available within the Windows FTP client. These commands apply to almost any command line FTP client in other operating systems such a Unix and Linux.
CommandDescriptionUsage [] commands optional
!Escape from the ftp subsystem to the shell.!
?Displays descriptions for ftp commands. ? is identical to help.? [command]
appendAppends a local file to a file on the remote computer using the current file type setting.append local-file [remote-file]
asciiSets the file transfer type to ASCII, the default.ascii
bellToggles a bell to ring after each file transfer command is completed. By default, the bell is off.bell
binarySets the file transfer type to binary.binary
byeEnds the FTP session with the remote computer and exits ftp.bye
cdChanges the working directory on the remote computer.cd remote-directory
closeEnds the FTP session with the remote server and returns to the command interpreter.close
debugToggles debugging. When debugging is on, each command sent to the remote computer is printed, preceded by the string >. By default, debugging is off.debug
deleteDeletes files on remote computers.delete remote-file
dirDisplays a list of a remote directory's files and subdirectories.dir [remote-directory] [local-file]
disconnectDisconnects from the remote computer, retaining the ftp prompt.disconnect
getCopies a remote file to the local computer using the current file transfer type.get remote-file [local-file]
globToggles file name globbing. Globbing permits use of wildcard characters ( and ?) in local file or path names. By default, globbing is on.glob
hashToggles number-sign (#) printing for each data block transferred. The size of a data block is 2048 bytes. By default, hash mark printing is off.hash
helpDisplays descriptions for ftp commands.help [command]
lcdChanges the working directory on the local computer. By default, the working directory is the directory in which ftp was started.lcd [directory]
literalSends arguments, verbatim, to the remote FTP server. A single FTP reply code is expected in return.literal argument [ ...]
lsDisplays an abbreviated list of a remote directory's files and subdirectories.ls [remote-directory] [local-file]
mdeleteDeletes files on remote computers.mdelete remote-files [ ...]
mdirDisplays a list of a remote directory's files and subdirectories. You can use mdir to specify multiple files.mkdir directory
mgetCopies remote files to the local computer using the current file transfer type.mget remote-files [ ...]
mkdirCreates a remote directory.mdir remote-files [ ...] local-file
mlsDisplays an abbreviated list of a remote directory's files and subdirectories.mls remote-files [ ...] local-file
mputCopies local files to the remote computer using the current file transfer type.mput local-files [ ...]
openConnects to the specified FTP server.open computer [port]
promptToggles prompting. Ftp prompts during multiple file transfers to allow you to selectively retrieve or store files, while mget and mput transfer all files if prompting is turned off. By default, prompting is on.prompt
putCopies a local file to the remote computer using the current file transfer type.put local-file [remote-file]
pwdDisplays the current directory on the remote computer.pwd
quitEnds the FTP session with the remote computer and exits ftp.quit
quoteSends arguments, verbatim, to the remote FTP server. A single FTP reply code is expected in return. Quote is identical to literal.quote argument [ ...]
recvCopies a remote file to the local computer using the current file transfer type. Recv is identical to get.recv remote-file [local-file]
remotehelpDisplays help for remote commands.remotehelp [command]
renameRenames remote files.rename filename newfilename
rmdirDeletes a remote directory.rmdir directory
sendCopies a local file to the remote computer using the current file transfer type. Send is identical to put.send local-file [remote-file]
statusDisplays the current status of FTP connections and toggles.status
traceToggles packet tracing. Trace displays the route of each packet when running an ftp command.trace
typeDisplays the file transfer type.type
userSpecifies a user to the remote computer.user user-name [password] [account]
verboseToggles verbose mode. If on, all ftp responses are displayed. When a file transfer completes, statistics regarding the efficiency of the transfer are also displayed. By default, verbose is on.verbose



Notes for launching the Windows FTP client from the command line:
Transfers files to and from a computer running an FTP server service(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]

-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote host to connect to.

Notes: