I am trying to connect to a remote servre via FTP in my VB 6.0 application.
I tried connecting to remote server using Inet but it gave status unknown error (code:120089). So I am trying to do this by batch file. I created a batch file as below:-
open 192.168.1.3 22
root
!@#%RedHat%)(*
cd "/opt/test"
put "C:\envars.exe" "envars.exe"
bye
( username is 'root' &
password is !@#%RedHat%)(*
)
I tried running the batch file from the command prompt as follows:- C:>ftp -s:F:\testScript.txt
Now I am getting the following error:- "ftp: connect : unknown error number"
Previously I was getting message, "connected" followed by, " connection closed by remote host."
However, I am able to connect to this server using Filezilla.
Please let me know if you are able to figure out what is the issue.
Thanks in advance
Sujit