C:\Users\taira\Desktop\safod_src>cd C:\Users\taira\Desktop\safod_src C:\Users\taira\Desktop\safod_src>rem pwd C:\Users\taira\Desktop\safod_src>rem dir C:\Users\taira\Desktop\safod_src>call download_list C:\Users\taira\Desktop\safod_src>if exist download_list_log.txt del download_list_log.txt C:\Users\taira\Desktop\safod_src>if exist makelist_list.bat del makelist_list.bat C:\Users\taira\Desktop\safod_src>"C:\Program Files (x86)\WinSCP\WinSCP.com" /console /script=download_listWinSCP.txt /log=download_list_log.txt batch on confirm off Connecting to www.ncedc.org ... Connected with www.ncedc.org. Waiting for welcome message... Connected Starting the session... Reading remote directory... Session started. Active session: [1] ftp@www.ncedc.org makelist_list.bat | 1 KiB | 0.0 KiB/s | binary | 100% C:\Users\taira\Desktop\safod_src>rem make file_list.txt put_list.txt C:\Users\taira\Desktop\safod_src>call makelist_list C:\Users\taira\Desktop\safod_src>if exist file_list.txt del file_list.txt C:\Users\taira\Desktop\safod_src>if exist logfile_list.txt del logfile_list.txt C:\Users\taira\Desktop\safod_src>if exist logfile_list2.txt del logfile_list2.txt C:\Users\taira\Desktop\safod_src>if exist put_list.txt del put_list.txt C:\Users\taira\Desktop\safod_src>rem comment C:\Users\taira\Desktop\safod_src>where /r "C:\Safod_Data" logfile 1>logfile_list.txt C:\Users\taira\Desktop\safod_src>rem ideally only 1 file C:\Users\taira\Desktop\safod_src>findstr 20170524_ logfile_list.txt 1>logfile_list2.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt 1>file_list.txt C:\Users\taira\Desktop\safod_src>where /r "C:\Safod_Data" 13244.dat 1>>file_list.txt C:\Users\taira\Desktop\safod_src>where /r "C:\Safod_Data" 13245.dat 1>>file_list.txt C:\Users\taira\Desktop\safod_src>rem where /r "C:\Safod_Data\20170524 | echo put > put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>put_list.txt C:\Users\taira\Desktop\safod_src>rem additional put does not hurt. in a case we have several logfiles C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>type logfile_list2.txt | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>where /r "C:\Safod_Data" 13244.dat | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>where /r "C:\Safod_Data" 13245.dat | echo put 1>>put_list.txt C:\Users\taira\Desktop\safod_src>rem merge file_list and put_lis to get merge_list.txt C:\Users\taira\Desktop\safod_src>call merge_list C:\Users\taira\Desktop\safod_src>setlocal batch on confirm off Connecting to www.ncedc.org ... Connected with www.ncedc.org. Waiting for welcome message... Connected Starting the session... Reading remote directory... Session started. Active session: [1] ftp@www.ncedc.org C:\Safod_Data\20170524_000203\logfile | 0 KiB | 0.0 KiB/s | binary | 0% Error transferring file 'C:\Safod_Data\20170524_000203\logfile'. ----rw-rw- 1 99 99 7 May 26 17:57 13244.dat ----rw-rw- 1 99 99 7 May 26 17:57 13245.dat ----rw-rw- 1 99 99 7 May 26 17:57 logfile Copying files to remote side failed. Could not create file. (A)bort, (R)etry, (S)kip, Ski(p) all: Abort C:\Safod_Data\20170524_000203\13244.dat | 0 KiB | 0.0 KiB/s | binary | 0% Error transferring file 'C:\Safod_Data\20170524_000203\13244.dat'. Copying files to remote side failed. Could not create file. (A)bort, (R)etry, (S)kip, Ski(p) all: Abort C:\Safod_Data\20170524_000203\13245.dat | 0 KiB | 0.0 KiB/s | binary | 0% Error transferring file 'C:\Safod_Data\20170524_000203\13245.dat'. Copying files to remote side failed. Could not create file. (A)bort, (R)etry, (S)kip, Ski(p) all: Abort batch on confirm off Connecting to www.ncedc.org ... Connected with www.ncedc.org. Waiting for welcome message... Connected Starting the session... Reading remote directory... Session started. Active session: [1] ftp@www.ncedc.org datapushWinSCP_tmp.txt | 0 KiB | 0.0 KiB/s | binary | 0% Error transferring file 'datapushWinSCP_tmp.txt'. ----rw-rw- 1 99 99 5254 May 26 17:55 SC_push_log.txt ----rw-rw- 1 99 99 7936 May 26 17:57 data_push_log.txt ----rw-rw- 1 99 99 255 May 26 17:57 datapushWinSCP_tmp.txt Copying files to remote side failed. Could not create file. (A)bort, (R)etry, (S)kip, Ski(p) all: Abort data_push_log.txt | 0 KiB | 0.0 KiB/s | binary | 0% Error transferring file 'data_push_log.txt'. Copying files to remote side failed. Could not create file. (A)bort, (R)etry, (S)kip, Ski(p) all: Abort