Friday, 31 July 2020

How to Transfer FIle to Remote Computer FTP


How to transfer files to remote computer:- 

ftp Batch Script Programmes
With Examples:-

NO SOFTWARE INSTALLATION REQUIRED TO TRANSFER FILE FROM YOUR COMPUTER TO REMOTE COMPUTER

 Syntax  
 
 ftp

Description:-

Transfering file To remote computer 

More Parameters and detail description goto c:\windows\system32\ftp/?

Note:- 

Type FTP in dosprompt, it will go to FTP-mode,There you can use ftp commands. You can return to the command prompt by typing the quit command. 
Instead c:\ promt it will show  ftp > command prompt. 

Examples:-

ftp Applies to window server 2012, 2015, 2019

Sample programme:-

Basic Syntax

ftp
open 10.130.100.100.100
userid
password

mget
or
mput


Note :- mget down file, mput - upload file. to get help type ftp and then help:
ls, dir, disconnect, delete, mdelete, mdir, open, quit, rmdir, send trace type etc etc.

HOW TO -- GET -- ALL FILES FROM OTHER COMPUTYER.

1 - FIRST BATCH FILE

@ECHO OFF
:: fILE  file name ftpone.bat  

::  This is combination two set of batch file 

C:\bat

ftp -s:c:\main\bat\mega\ftptwo.txt

quit


2 - SECOND  ONE IS TEXT FILE -

FTPTWO.TXT  INSIDE FILE PUT  IP address, USER ID AND PASSWORD


C:\
cd\main

open 10.130.7.37 
userid
password

cd /
cd MAIN

dir * 

mget *.*

bye

NOTE:-   bye  command is quiting the prg.   cd / bacward slash


---------------------------

Download FTP software:-

Some more examples using External software for FTP:

1   Two useful external FTP software to download or upload in Dosprompt without any installation of software:    EXE file name

      1 - ncftpget.exe

      and

      2 - ncftpput.exe 

No software instalation required for these two Exe file. Easy to use In Dos Prompt.

2   FAMOUS FTP software for windows, file uploading and downloading to remote PC. 
External Link given below.



How to use ncftpput.exe or ncftpget.exe  without writing batch file.
Single line command for FTP.

ncftpget -u test -p link 10.130.7.37 c:\ \remoteserverdirectory\*.*

- u is User ID, -p is password, 10.130.7.37 is IP address,  c:\ \remoteserverdirectory\*.* is remote directory with all files to download.

ncftpput -u anonymous -p anonymous -t35 -DD 10.110.81.2 \ e:\250mb_ril_bsnl*.*

ncftpget -u opi -p link -t35  -DD 10.110.81.2   \\tdatasrv\tdata\NEWS\main\reg\    \USA\recd\*.*

\\tdatasrv\tdata\NEWS\main\reg\ -- Local directory,   \USA\recd\*.*  remove directory
no username and no password is Anonymous

Sample Batch file for FTP Programe inside Batch file
ncftpput.exe or ncftpget.exe  no software installation is necessary for FTP ( not dos command) :

1)    ncftpget -u test -p link 10.130.7.37 c:\ \remoteserverdirectory\*.*
:: remote IP address and -u- for userid -p- for password

2)   ncftpput -u opi -p link 10.130.7.37 \thanthi\2006\jul c:\*.pdf
::-u is userid   -p   is password

No comments:

Post a Comment

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-   Syntax         tree   /f Description:- Displays names of files in a dir...