New User - need help with a script

Advertisement

smcelhe
Guest

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum