Post a reply

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)


Topic review


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\" ^
  /command ^
    "open sftp:// etc....^
    "put C:\fileput.xml /home/import/" ^

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]