I'm trying to create a batch file and FTP script to upload a file to a FTP site. The code is working but the cmd.exe fails to close when the file is uploaded. My Bat file looks like:
ftp -n -s:"C:\myFolder\FTP_Script.txt"
The script file looks like:
CD "/FTP Folder"
The file gets uploaded properly, but the Command window does not close. The lines in the cmd.exe window look like:
ftp> Open FTPURL.com
220 Serv-U FTP Server v15.1 ready...
ftp> User MyUserName
331 User name okay, need password.
230 User logged in, proceed.
ftp> CD "/FTP Folder"
250 Directory changed to /FTP Folder
200 Type set to I.
ftp> put "C:\Work\dummy.txt"
220 Port command successful.
150 Opening Binary mode data connection for Dummy.txt
Then it just hangs there, and never closes the cmd.exe window.