I want to connect on a remote server and copy a folder that is in location C:\vrs and to rename it with the name and sysdate.`
The script is :
telnet 10.194.32.xxx copy C:\vrs\vsn C:vrs\vsn_bkup_%Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4% exit But the issue is that when is connecting on IP, I receive the following question:
you are about to send your password information to a remote computer in Internet zone. This might not be safe. Do you want to send it anyway? I have to answer yes, but will not follow the next steps from my bat file. Can I automate the answer "y" with a new line on the script?
P.S. Neither echo y| telnet ip nor echo y.txt file work
Any idea? (The server where I want to connect via telnet is Windows 2003 Server R2)
Thank you in advance!