Due to lack of use the forum is now read only. Please post questions etc in our facebook group at https://www.facebook.com/groups/128453854681/

winscp upload script

Information on our Lap Counting system.
Forum is read only, to post in here please request
access by sending a PM to an Admin.
Post Reply
User avatar
dralphs
Site Admin
Site Admin
Posts: 553
Joined: Fri Nov 14, 2014 11:50 pm
Location: Oxford
Team: Falcon Notnray
Contact:

winscp upload script

Post by dralphs » Wed Dec 30, 2015 6:25 pm

FTP upload to BPCCLiveTiming folder needs a command line ftp client that can upload in passive mode
Windows inbuilt client can only use active mode which won't work

An alternative is Winscp from https://winscp.net/eng/download.php

Use the portable version and put it in a folder at c:\lapcount\winscp575

create a script winscp.txt (below) and save it in c:\lapcount

Code: Select all

option batch off
option confirm off
open ftp://<username>@pedalcarracing.info:<password>@ftp.pedalcarracing.info -passive=on
rm racedataset.xml
put -transfer=automatic -neweronly C:\lapcount\racedataset.xml racedataset.xml
rm racedatasetcopy.xml
put -transfer=automatic -neweronly C:\lapcount\racedataset.xml racedatasetcopy.xml
close
exit
FTP details will need to be entered

Winscp is run by calling it using command
c:\lapcount\winscp575\winscp.com /script=c:\lapcount\winscp.txt
Attachments
winscp.zip
(316 Bytes) Downloaded 22 times
Dave
Falcon Notnray Racing
www.yarntonscouts.org.uk

Post Reply