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: New User - need help with a script

You need to store the commands for WinSCP to separate file. Please see example in documentation.
smcelhe

New User - need help with a script

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