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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -