Posted: 2016-01-16 04:58
I am new to this. I have run each of the steps in this .bat file individually in winscp.com and it works. However, when I run it from a .bat file, I can see something flash on the screen as if winscp is opening but the file is not returned. What am I doing wrong?
Here is the winscp.com using the /command in the .bat file:
winscp.com /command ^
"open ftp://email@example.com/" ^
"cd /edgar/data/1618921" ^
"get 0001567619-16-001640.txt c:\Users\Laurel\Documents\testthis.txt" ^
I had also tried running it as winscp.com /script but it behaved the same way.
The code in the .txt script file is this:
option transfer binary
get 0001567619-16-001640.txt c:\Users\Laurel\Documents\testthis.txt
the code in the .bat file to run the script is this:
Thanks for you help!
Location: Prague, Czechia
Run the batch file from Windows console (
Or enable logging and inspect the log.
To generate log file, use
You can post new topics in this forum
And it's free!