Topic "help with a script to upload"

Author Message
jmedley200
[View user's profile]

Joined: 2016-02-09
Posts: 1
Location: USA
currently use a .bat file with win ftp to upload but need to transition the command line script to WinSCP. Any guidance would be greatly appreciated. Here is the current .bat which needs to be transitioned:

*********************************

d:
CD \
CD \apps\Axys3
d:\apps\Axys3\axys32.exe bb_alpha.scr -exit
@echo off

set olddir=%CD%
c:

set TmpFile=%temp%\ftp_tmp.vbs

echo>>%TmpFile% With WScript
echo>>%TmpFile% .Echo "user"
echo>>%TmpFile% .Echo "username"
echo>>%TmpFile% .Echo "password"
echo>>%TmpFile% .Echo "binary"
echo>>%TmpFile% .Echo "prompt no"
echo>>%TmpFile% .Echo "mput D:\apps\Axys3\Bloomberg\bb_alpha.xlsx"
echo>>%TmpFile% .Echo "close"
echo>>%TmpFile% .Echo "quit"
echo>>%TmpFile% End With
cscript //nologo %temp%\ftp_tmp.vbs > %temp%\ftp_tmp.txt
ftp -n -s:%temp%\ftp_tmp.txt 205.216.112.8
del %temp%\ftp_tmp.txt
del %Tmpfile%
set TmpFile=

*********************************

Thanks in advance
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Why do you use a batch file to create a VB script to create an FTP script? It's over-complicated.

Anyway, for instructions for converting ftp.exe script to WinSCP, see
http://winscp.net/eng/docs/guide_ftp_script_to_sftp
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License