• 0

Upload file script assistance


Question

sini

Hello, I am currently uploading a csv file that changes fairly frequently (1-2 seconds) via a batch script and ftp. While this does work it's fairly slow. More time is spent on the ftp commands than actually uploading the file (300-500 bytes).

 

Any assistance or guidance in a better process would be greatly appreciated.

 

upload.bat

:loop
ftp -s:ftp.txt
goto loop

 

ftp.txt

open ftp.site.com
login
password
binary
put "file.csv"
disconnect
bye

 

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
+virtorio

Write an upload script (with something like Python instead of a batch file) that re-uses the connection, so you don't have to connect each time. 

Link to post
Share on other sites
  • 0
sini

Thanks. I'm not familiar with python. May have to do some research. 

Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.