The what help files that
are provided are found by typing a bogus ftp command and capturing
the error message..
C:\WINDOWS>ftp open c get < bogus command causes error and this message
FTP is a DOS based command. FTP is used to download
files form remote sites.
The FTP command is used froma DOS command line
[C:\>FTP]
Availible switches are listed below.
Repeat visits to the same site can use a file
[i.e. SITENAME.FTP] to store commands
and user/password directory and other information
specific to that remote site and
user. Coupled with a batch file [i.e. SITENAME.BAT]
FTP can be automated completely.
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.
Unless you have an exceptional memory... You will probably use a batch file to get the command line right.
One way is to use a two file
system a batch file to start your session and an FTP file to contain the
commands
you use most often. Name
maybe paired using the site or machine name.
From FTP help responses:
!
Escape to the shell
prompt
Force interactive prompting on multiple commands
put
Send one file
send
Send one file
get
Receive file
recv
Receive file
?
Print local help information
help
Print local help information
lcd
Change local working directory
ls
List contents of remote directory
dir
List contents of remote directory
append Append to a file
remotehelp Get help
from remote server
delete
Delete remote file
pwd
Print working directory on remote machine
mkdir
Make directory on the remote machine
rmdir
Remove directory on the remote machine
mdir
List contents of multiple remote directories
mls
List contents of multiple remote directories
mput
Send multiple files
mget
Get multiple files
mdelete
Delete multiple files
status
Show current status
bell
Beep when command completed
verbose
Toggle verbose mode
hash
Toggle printing `#' for each buffer transferred
trace
Toggle packet tracing
debug
Toggle debugging mode
quote
Send arbitrary ftp command
literal
Send arbitrary ftp command
open
Connect to remote tftp
user
Send new user information
type
Set file transfer type
ascii
Set ascii transfer type
binary
Set binary transfer type
glob Toggle metacharacter expansion of local file names
bye
Terminate ftp session and exit
quit
Terminate ftp session and exit
close
Terminate ftp session
disconnect Terminate
ftp session
cd
Change remote working directory
rename
Rename file
This is not the raw capture. I have grouped the commands into function
When I start a new batch
file with an unfamiliar command, I usually put what help there is right
in the batch file following an exit
FTP-CALL.bat
:: the command starts below double colons are a good fast way to enter comments
FTP -v-n -s%1
:: the -s parameter is calling for an outside file
for the ftp commands
:: The %1 is a varible place holder If you have many
FTP sites to goto
:: this can help speed up things further
:end
exit
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.
Now I can make changes with out looking up the command line syntax or error messages
Well that looks pretty good for a start. Now to write the .FTP file with all the ftp commands included
The Help file right mouse click on this link to download or left mouse click ot read.
The file also contains a
couple of Easter eggs...