FTP transfer using a batch file

Advertisement

kathan
Joined:
Posts:
3
Location:
USA - NJ

FTP transfer using a batch file

I am trying to transfer files from FTP to FTP via a batch file but it loses a few KBs when copying. So, if the file size was 400kb then it would copy 396kb. I have ran the batch file multiple times but I am still experiencing the same issue. I then clicked the option for "Compare Directories" within the software but it "No differences found".
I would also like to verify the copied files using the batch files. Is there a way to do so?
I have attached the code with the post
  • script for winscp.bat (547 Bytes, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,253
Location:
Prague, Czechia

Re: FTP transfer using a batch file

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

kathan
Joined:
Posts:
3
Location:
USA - NJ

I am not sure why it didn't post earlier but here it is.
  • 20230911_112959_Data_to_Data.txt (8.18 KB, Private file)
Description: I am not sure why it didn't post earlier but here it is.

Reply with quote

kathan

That is the issue. Even though the files are not transferred correctly, it keeps saying there is nothing to synchronize via the code and the WinSCP software.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum