batch ftp windows server

0

good afternoon. I need your help regarding a batch file that I run without problems in windows 10, but when you deploy it in windows server 2016 it does not work 100%.

The functionality is as follows, I connect to an ftp server and download what has the ftp in a local folder on the server with windows server but the strange thing is that it does not bring all the files that exist in the ftp.

In the ftp I have 10, I only download 6 with the batch, procedure that works without problems in windows 10.

I attach the code that works on windows 10:

open (ip ftp) 
usuario ftp 
password ftp 
lcd "ruta del disco local donde almaceno los archivos" 
mget * 
bye

It works are problems in windows 10, but it only brings me 6 out of 10 files in windows server.

Files without all excel (xlsx), all equal the same extension.

Will it be some parameter that I'm missing? another command to use?

Please help. Thanks.

    
asked by Daniel Espinoza 10.05.2018 в 22:22
source

1 answer

0

Try adding

OPTS UTF8 ON

before mget to work correctly with names with special characters.

    
answered by 10.05.2018 в 23:04