要执行特定任务,我必须执行以下命令
telnet 10.0.0.192 *hit enter
y (answer yes to whatever question comes up) *hit enter
DOMAIN\username (when prompted for username) *hit enter
password (when prompted for password) *hit enter
\\10.0.0.2\path\batchFile.bat (this is the batch file I'd like to run in the end) *hit neter
有没有一种方法可以将所有这些数据合并到一个批处理文件中(将密码保存到其中就可以了),这样我只需双击批处理文件并最终batchFile.bat
在远程服务器上执行?