I have created a bat file to transfer files from a pc to server Everything works fine when a enter command manually but I doo not know how to convert in a script as it will stop after enter password request
cd c:\users\user\documents\transfer
sftp [email protected]
put *.txt
The problem is that when the system requests a password, I enter the password but it will stop and I will need to write down the rest of the script
Is there any way to make the script to continue after entering the password?