Re: Command Fails
Hi,
I am using the following syntax to connect to one of my ftp servers and trying to GET a file from it thru "/Command" as I don't want to use the graphical as well the command line (of WINSCP) interface.
Ultimately my code will generate a batch file and thru which all of these things would happen.
winscp.exe ftp://user:pwd:@myserver:21 /command "get 11052008.dyc" "exit".
When I am doing it its not getting me any result.
But graphical and command line (of WINSCP) works, I am able to do it.
For security reasons you cannot use URL-like session specification on command-line together with any automation.
You would know that if you use /console as well.
But you can do:
winscp.exe /command "open ftp://user:pwd:@myserver:21" "get 11052008.dyc" "exit"