Topic "Get Command"

Author Message
mcsedude

Guest


I have it almost working. I got the files to be deleted locally, able to login but when I try to get the files I want *.* it does not work. But when I do login I can get the files manually by typing get *.* and it works just fine. What am I missing in this script? This should be really simple.

echo off
del D:\test123\class.csv
del D:\test123\students.csv
"C:\Program Files (x86)\WinSCP\WinSCP.com" serv01
get *.*
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You are executing get as a Windows command (from batch file). But it is WinSCP command, so you need to pass it to WinSCP.
See documentation:
http://winscp.net/eng/docs/guide_automation
_________________
Martin Prikryl
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