Check file size before uploading

Advertisement

alexsambi25
Joined:
Posts:
1
Location:
Oslo

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]

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum