Post a reply

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

alexsambi25

Check file size before uploading

The script working fine, but from now I need to check the file size before start uploading.

here is my codes.

@echo off


"C:\Program Files (x86)\WinSCP\winscp.com" ^
  /command ^
    "open sftp:// etc....^
    "put C:\fileput.xml /home/import/" ^
    "exit"


How I can make this codes to check the size C:\fileput.xml if the file size less than 100 MB so stop uploading.[/code]