This is a static archive of our old forum. Most features inc files and downloads work but some links are now dead
Please refer to Our Website or our Facebook Groupfor latest info.

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.
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 »

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 303 times
Dave
Falcon Notnray Racing
www.yarntonscouts.org.uk