Help me to convert the ftp script to WinSCP script

Advertisement

Santhosh Kumar S
Joined:
Posts:
4

Help me to convert the ftp script to WinSCP script

Help me to convert the FTP script to WinSCP script. I have provided the FTP scripts in the FTP script file below. In the script, there are two authentications to connect the server.
open xyz.com
user 123 abc
user "abcd 12345" YYYYY
get %ERR Errors.txt
lcd C:\path\
prompt 
binary
ls
prompt n
mget %%txt%
ls
disconnect

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Help me to convert the ftp script to WinSCP script

I do not understand what does your two user commands do. What ftp are you using? Is it the Windows one? Can you post its verbose log file?

Reply with quote

Santhosh Kumar S
Joined:
Posts:
4

Hi Martin,
Please help me to convert the mget %%txt% into WinSCP script.
I didn't find a replacement for the double %% and single % symbol for Winscp.

Thanks
Santhosh

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

I do not understand. In mget %%txt%, the % does not have any special meaning. It is just a part of the file name. So, in WinSCP, there's no change. Just use
get %%txt%
(Unless you have set an environment variable txt, which would expand in the script, breaking the filename)

Reply with quote

Advertisement

You can post new topics in this forum