Topic "Get Command"

Author Message


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\" serv01
get *.*
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
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:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License