How to overwrite prompt with a (Y)es asked while removing a file in winscp.
I am trying to remove a file in a VM and put a new file with the same name in that directory. But somehow the file is not getting removed. When i tried to remove the file manually it is throwing a prompt asking " remove regular file xxx.xml?". how can I input yes into this prompt when run from bat script.
Below is the code i am using:
"C:\Program Files (x86)\WinSCP\WinSCP.com" username:email@example.com "option confirm off" "option batch abort" /command "rm /usr/local/web.xml" "put e:\web.xml /usr/local/web.xml" "exit"