Topic "New User - need help with a script"

Author Message
smcelhe

Guest


I installed WinSCP.....Created a Session called PDCH.

I can connect to the site with the connection and "get" the file I need.

Now....I want to create a batch file to do it.

Here is what I have:

cd \
cd Program Files\WinSCP\
winscp.com PDCH
get PDCH1
exit

When I run the batch file....the command window opens....Winscp connects to the site....and stops....

The command window is open....I can type dir and see the file...I get get the file....if I type get PDCH1....

Why don't the commands on the batch file work?

Any info would be appreciated.

Thanks Shwan
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
You need to store the commands for WinSCP to separate file. Please see example in documentation.
_________________
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