Here is how you can FTP a file from your windows client machine to a Unix server box.
Open the command line by going to Start > Run and type cmd.
You should see something link this:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\compshack>
Now, navigate to the location of the file you would like to FTP. Mine is located under c:\temp\
Lets type the ftp command:
You should see something like this where you will get prompted for the userid you will be login to the server with as well as the password:
Connected to database_name
220 database_name FTP server (Version x.x Tue Jul 6 21:20:07 CDT 2004) ready.
User (database_name:(none)): your_userid
331 Password required for your_userid.
230 User your_userid logged in.
Issue the command below to check the default login location for this server:
and you should see something like this:
257 "/incoming/files" is current directory.
If this is not the directory you would want to FTP the file to then issue a CD command to get to the desired directory:
ftp> cd /temp/files
250 CWD command successful.
257 "/temp/files" is current directory.
It looks like we are all set, lets FTP a file called my_file from c:\temp to /temp/files.
note: you would use the put command to ftp the file, and the put command allows to change the file name on the fly. So, in my example I'm changing the file name from my_file to test_ftp.txt
ftp> put my_file.txt test_ftp.txt
200 PORT command successful.
150 Opening data connection for test_ftp.txt.
226 Transfer complete.
ftp: 5151 bytes sent in 0.01Seconds 515.10Kbytes/sec.
Bookmark/Search this post with