Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Get Command

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:
https://winscp.net/eng/docs/guide_automation
mcsedude

Get Command

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