Topic "Automation Script"

Author Message
Bilal Alassar

Guest


Hello,

Currently we are evaluating WinSCP to automate the process of downloading the files from a specific folder from a public IP, but I'm still not able to resolve the issue, when I execute the command using the cmd, it works perfectly, please find below my code and let me know your response.

winscp.exe /console /command "option batch on" "open ppasama01:PPAsama01@212.93.199.36" "cd /ppasama01" "get *.txt c:\Bilal\" "exit"

My Regards,
Bilal Alassar
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Sorry, I do not understand what is the problem. What does not work? Under what circumstances?
_________________
Martin Prikryl
Guest




Hello Prikryl,

Thanks for the reply.

The issue here, when I run a batch file which includes the code below, I don't receive any files from "ppasama01" folder, nevertheless I'm not facing any issues if I use the CMD window directly, please let me know comments.

winscp.exe /console /command "option batch on" "open ppasama01:PPAsama01@212.93.199.36" "cd /ppasama01" "get *.txt c:\Bilal\" "exit"

Thanks,
Bilal Alassar
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can you post a log file for both cases?
_________________
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