thank you very much for your answer.
It sound that there is no special funktion avaiable to deactivate the "Directory listing".
Due to the mobile data connection it could happen that we lose the internet connection during a upload process. For that I think it should be a must to use this comment "-neweronly" to overwrite existing data on the FTP server which were not fully transmitted/uploaded.
Do you have any idea how we could be sure that a file was uploaded successfull (to 100%) without creating too much traffic (caused maybe by this Directory listing) ?
By the way: We tested another script time based, but have the same issues here.
echo FTP-Upload Process
for /F %%i in ('dir /b "D:\-FTP-DATEN-\*.*"') do (
echo Found new data for upload:
"C:\Program Files (x86)\WinSCP\winscp.com" /script=ftp.txt /parameter %%i
This .bat-script will start a upload process for every file which is included in the mentioned folder and start again after 60 seconds.
option reconnecttime 30
option confirm off
option batch on
option failonnomatch on
put D:\-FTP-Data-\"%1%" / -delete -resume
echo Upload process successful
I was playing with some parameters such as confirmation, batch and failonnomatch without seeing anything being better for our use case.
I think the "rm" function will also ask for the content of the FTP server and will create this traffic (Directory listing). I am right ???