Windows Batch
--
Questions
--
Followers
Top Experts
This the batch file.......without the real ftp of course...
# option batch abort
# option confirm off
open ftp://certs@Helloworld-inc.com:password@Helloworld-inc.com -passive=off
synchronize remote d:\share\certs\new /
close
It connects to the ftp and then gets to comparing, loses connection and then  disconnected  from server.
So this is what we see.
comparing...
Local 'dD\shar\cers\new => Remote '/'
Lost connection
Disconnected from server
Could not retrieve directory listing
TYPE is now ASCII
Error listing directory '/'.
Session closed.
Any help would be much appreciated. Â He has search on the web for over a week and still cannot get this to run.
Thank you.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Did you paste the log info in, or type it fresh, since a couple of lines seem wrong:
Local 'dD\shar\cers\new => Remote '/'
Also, does the user being used for the FTP session have access to the root folder?Try connecting with the same FTP client in an interactive session, and see if you can list the remote directory from that.
ls /
~bp
However, is obvious that the local dir output looks garbled. Maybe issues with the backslash?
~bp






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Try changing this line:
synchronize remote d:\share\certs\new /
to
synchronize remote "d:\share\certs\new" "/"
 open ftp://certs@Helloworld-inc.com:password@Helloworld-inc.com -passive=off
 synchronize remote d:\share\certs\new /
 close
The user does have access to root, that is what the client tell us, we are unsure how to test with a interactive session. Â
We added double quotes as above, we are still unable to connect. Â ERROR below.
comparing...
 Local 'd:\shar\cers\new => Remote '/'
 Lost connection
 Disconnected from server
 Could not retrieve directory listing
 TYPE is now ASCII
 Error listing directory '/'.
 Session closed.
~bp

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Thanks again our network admin does not know how to do a interactive session. Â Could you advise?
I tried
FTP open //certs@Helloworld-inc.com
I got unknown host. Â Sorry we are trying.
~bp






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
~bp
Windows Batch
--
Questions
--
Followers
Top Experts
Batch files are text files containing a script of commands that are executed by the command interpreter on DOS, OS/2 and Windows systems. Most commonly, they are used to perform a series of functions that are repeated -- copying a set of files created daily with one step, for example.