Topic "need help on basic script"

Author Message
edlee
[View user's profile]

Joined: 2012-08-03
Posts: 2
Location: CA
Hi all i am trying to automate download every night from a sftp site
there are 3 folders i would like to download

folder1
folder2
folder3

i created a batch file
called download.bat
winscp.exe /console /command "option batch abort" "open username:password@sftp.website.com" "get folder1\* c:\download"

it runs but nothing happens what am I doing wrong

thank you all for your help
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Is folder1 subfolder of the initial session folder?
Try using full path instead.
Also make sure you use forward slash for remote paths.
_________________
Martin Prikryl
edlee
[View user's profile]

Joined: 2012-08-03
Posts: 2
Location: CA
prikryl wrote:
Is folder1 subfolder of the initial session folder?
Try using full path instead.
Also make sure you use forward slash for remote paths.


Hi prikryl

folder1 is a subfolder and I just tried using forward slashes as you suggested but nothing happens

what is the difference between winscp.exe and winscp.com
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
edlee wrote:
folder1 is a subfolder and I just tried using forward slashes as you suggested but nothing happens

Please post a log file.

Quote:
what is the difference between winscp.exe and winscp.com

Please read documentation:
https://winscp.net/eng/docs/executables
_________________
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