ftp commands

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.
When i run a batch file wich includes a ftp command, the computer doesn't
send the information to the server, the windows firewall is actived.
 
Hi,
When i run a batch file wich includes a ftp command, the computer
doesn't send the information to the server

Since ftp.exe is a separate program, you can't just include FTP client
commands (such as "put <filename>") in your batch file. The batch file can
launch ftp.exe, but it can't control it.

However, this has been thought of and you can launch ftp.exe and specify a
separate command script file on the command line:

%windir%\system32\ftp.exe -s:c:\ftpscript.txt

The above will launch ftp.exe and tell it to execute FTP commands in
c:\ftpscript.txt. The last line in the script should probably be "quit", so
that it exits when done and your batch file can continue.
 
Hi Thanks for your help!!!

the comands are:

call ftp -n -s
open ip address
put username and password
cd folder to use
quote rcmd call and the program.
 
Back
Top