Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

So please go back to the original problem. Post a log file showing the copy that "loses a few KBs".

Or if you want WinSCP to recognize that the file is not complete during synchronization, include file size into synchronization criteria:
https://winscp.net/eng/docs/scriptcommand_synchronize#criteria
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.
martin

There's no file transfer in the log you have posted:
< 2023-09-11 11:30:03.445 Script: Nothing to synchronize.
kathan

I am not sure why it didn't post earlier but here it is.
martin

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.
kathan

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