WinSCP issue

prasadgov

Member
Local time
Today, 15:15
Joined
Oct 12, 2021
Messages
114
Hi All,

I do a download using WinSCP and it works fine.
However, the script file and the folder to which the files are downloaded are in the same location as the winscp.exe. I later move the files to my working folder.
When I use, mget *.ftprcv C:\Software\winscp\tccfiles\*.txt I have no issues since the the winscp.exe is in C:\Software\winscp.
But when I try, mget *.ftprcv C:\inputspipe\tcc\tccfiles\*.txt it fails. C:\inputspipe\tcc\tccfiles is the working folder.

When I tried to pass the Working folder inside the script file, it fails either inside the code or even manually.
The log shows that it connects to the FTP server and retrieves the file but fails during download or delivery.

Will this work only if the folder is in the same path as the winCP.exe?

I even tried to fully qualify the path in my Batch file but no success.
"C:\Program Files (x86)\WinSCP\winscp.exe" /script="C:\Software\winscp\gettcc.txt"

TIA
 
Last edited:
 
Well read up on the syntax and capabilities of each, before trying to use them.

Common sense really.
 

Users who are viewing this thread

Back
Top Bottom