How to connect to ftp and upload files using windows command prompt?

Some people love getting it all done through the command prompt and some might have been forced to ftp via the command line. Hope this one helps you both.

Step 1 . Take the command Prompt using run in windows.

step 1

Step 2 . Connect to your ftp  using ftp command.

ftp dollarfry.com

step 2

Step 3. Login using your ftp credentials.

Step 4 . See and navigate your directory contents using cd (Change Directory) and ls (list) commands.

Have a look at some basic linux commands (if you are’nt aware of)

  • cd – directoryname will get you into that directory.
  • cd../  – will get you out of the current directory  and gets you one directory back. For example, if you are in the directory /docs/images/ . And “cd../” from the images directory will get you to the docs directory.
  • pwd – Present Working Directory. pwd will show you the current directory path which you are in.
  • ls – This will list the contents of the current directory in which you are in.

Step 5. Upload files using put command.

put filename  will move your fille to the current directory. 

ftp> put C:\docs\test.pdf

will upload your local file to the directory of your server.

Step 3

About the author

Linjo Joson

Linjo is a PHP developer who loves to write about online businesses and marketing ideas

Add comment

Categories