I am developing an batch file, that will read all files of extension .dem, and will upload it to my FTP. However, only files with more than 1mb can be uploaded.
My current script is:
(upload_demos.ftp)
open my_ip
username
pass
lcd /D "C:\TF2_Server\tf"
cd SourceTV/
binary
mput *.dem
disconnect
quit
And (move_demo_to_ftp.bat)
ftp -i -s:upload_demos.ftp
cd C:\TF2_Server\tf
del /S *.dem
With these scripts, all *.dem files will be uploaded (Including those with size less than 1mb ).
Can you guys help me check the file-size before uploading (And deleting ? )
Thank you,