Topic "New User - need help with a script"

Author Message


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\ PDCH
get PDCH1

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