save vbscript to a file

前端 未结 1 706
無奈伤痛
無奈伤痛 2021-01-24 18:29

I have a batch file that contain:

@echo off

start telnet x.x.x.x 5000
cscript script_test.vbs

while script_test.vbs contains:

         


        
相关标签:
1条回答
  • 2021-01-24 18:30

    Do not use SendKeys for automating the telnet command that ships with Windows. Use a telnet command that is actually scriptable, like plink from the PuTTY suite.

    plink -batch -telnet -l USERNAME -pw PASSWORD x.x.x.x COMMAND1
    
    0 讨论(0)
提交回复
热议问题