English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do I FTP a file from a DOS prompt? I want to send a file from my harddrive to a folder on our network. I have a GUI FTP tool, but I want to use a character based method this was I can make it part of a script. Any ideas?

2007-07-12 07:07:47 · 2 answers · asked by hegottahaveit 1 in Computers & Internet Programming & Design

2 answers

Assuming your using XP?

From the command line

c:\ FTP
FTP> open (ip address you want to access) (i.e. open 192.168.2.1)
FTP>bin (changes mode to binary)
FTP>put "filename"

Note that FTP only looks in the local directory you fired FTP up from. So if you were at the root directory on the local machine when you started FTP, that is where is will look for the file your trying to move. To change the local directory the command is "LCD" followed by the complete path.

Same is true on the other side, it will "put" the file in the remote side directory that you log in to. "CD" is the command that changes directories on the remove machine.

See link below for additional commands.

2007-07-12 07:21:20 · answer #1 · answered by Fester Frump 7 · 0 0

1. Open the Command prompt
2. Type 'ftp' and press "Enter"
3. Type 'open SERVERNAME' (For example, "open ftp.yahoo.com") and press "Enter"
You should see your server's Welcome message.
4. Enter your username and password when prompted
5. Change to the directory you want to upload to.
6. Use the 'put "FILENAME"' command to upload files. (For example, 'put "C:\Docs\thisfile.txt"')
7. Logoff using the 'bye' command.

2007-07-12 14:15:00 · answer #2 · answered by Tria 1 · 2 0

fedest.com, questions and answers