batch file - How do I pass a username to an FTP command from the command line? -
i attempting script file upload using winscp using batch script. problem is, cannot figure out how pass ftp username/password prompt. here script:
@echo off "..\..\..\program files (x86)\winscp\winscp.com" /command "option batch abort" "option confirm off" "open ftp://**.***.***.*" "put boom.txt /test/" "exit" echo domain\ftp_user set /p dummy=press enter close
currently echo command isn't working, , command prompt still shows:
prompting credentials.... username:
how pass username/password thing?
the syntax specifying credential in ftp url is:
ftp://username:password@hostname/
Comments
Post a Comment