Monday, June 20, 2011

How to transfer files to remote server using command prompt in windows XP

Now a days there are a lots of application software for doing this task. One can easily buy one of this software or download free versions form net. But sometimes in case of emergency you can transfer files to your remote server using your command prompt without help of any software. And it’s very easy. Its always better to know different options.

For transferring files to a remote server using command prompt just follow the following steps.
Before this you have to have your internet connection active.
First of all open your command prompt window. You can open it form start menu-->All programs--> Accessories --> Command prompt or from run type cmd to open command prompt.
Then in command prompt command window type ftp then you see the command directory changed to ftp>
Now type open then on the next line you see To
Type your server address. For an example I want to upload a file to graphicriver ( a design site) root menu. Graphic river server address is ftp.marketplace.envato.com I type it on the command window. Press enter. Then you see whether you connected to your site or not. If you connected then from command window you see your status.
After you connected to your server then you will be prompt to provide username and password. Type your username and password correctly.
If you successfully logged in then you will be ready to transfer files. You can transfer files in two ways one in Ascii mode or in Binary mode. By default Ascii mode is selected. If you want to change mode in binary just type bin.
Now for transferring files from your pc to remote server type put command. put command is used to transfer one file at a time.Press enter and you will be prompt to locate your local file. type the local file address with its extension. Press enter and again you will be prompt to locate you remote file where you want to  transfer local file. Type the remote directory. To transfer files in your root directory don't type anything just press enter.
Your file will be transfered and you will see a message as transfer complete.
The whole process is described in the following picture.
Process of transferring files to remote server using command prompt.


0 comments:

Post a Comment