How to stop a script from prompting
I have the following script
When the scrip get to the put command the Dos Box prompts me to overwite existing <Y>es <N>o <C>ancel A<p>pend ect.
How can I get this to always overwrite.
Now the server does have WINCP 4.3.1, and has existing jobs created by other user (who may no longer be here). We don't know if updating will break them.
@ECHO OFF "C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="P:\TK20FileInfo\WinSCP.log" /ini=nul ^ /command ^ "open *** REMOVED FOR SECURITY^ "lcd T:" ^ "cd /home/cofcit" ^ "put tk20*.txt" ^ "exit"^ set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit exit /b %WINSCP_RESULT%
When the scrip get to the put command the Dos Box prompts me to overwite existing <Y>es <N>o <C>ancel A<p>pend ect.
How can I get this to always overwrite.
Now the server does have WINCP 4.3.1, and has existing jobs created by other user (who may no longer be here). We don't know if updating will break them.