|
lililulula
中级用户
  
积分 302
发帖 138
注册 2007-3-29
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
顶一下,everest79兄看到还请帮忙
Bump up, Brother everest79, please help when you see it
|
|
2007-4-19 02:29 |
|
|
lililulula
中级用户
  
积分 302
发帖 138
注册 2007-3-29
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
问题我已经解决了 vbs脚本中设置cmd程序路径然后执行,vbs脚本运行指定命令,但是有个问题是当输入指令中含有"("和")"符号时无法正确输入,不知道有什么办法解决没有.~~
The problem I have been solved. In the VBS script, set the path of the cmd program and then execute it. The VBS script runs the specified command, but there is a problem that when the input instruction contains "(" and ")" symbols, it cannot be entered correctly. I wonder if there is any way to solve it.
|
|
2007-4-19 03:39 |
|
|
lililulula
中级用户
  
积分 302
发帖 138
注册 2007-3-29
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
找了些资料看了看,输入问题也解决了.在此要谢谢 everest79兄之前的帮助
I found some materials and read them, and the input problem is solved. I would like to thank brother everest79 for the previous help here.
|
|
2007-4-19 04:00 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
啊哈,你17的方法是什么,详细说一下,含有""的指令最简单的方法是以变量来保存,再调用
Heheh, what's the method for 17? Let's talk in detail. The simplest method for the instruction containing "" is to save it as a variable and then call it.
|
|
2007-4-19 09:53 |
|
|
lililulula
中级用户
  
积分 302
发帖 138
注册 2007-3-29
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
CMDPath="C:\WINNT\system32\CMD.EXE"
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run CMDPath
这样可以很好的解决窗口敏感的问题,其实也很简单,当然很使用.
可以用这个方法出来解决很多需要输入用户名密码的软件进行自动登陆,用途广泛.
在vbs SendKey功能的符号问题我指的是在telnet下显示括号问题,不过现在已经解决,感觉批脚本和vbs脚本合用可谓是前途无量啊~~~~
CMDPath="C:\WINNT\system32\CMD.EXE"
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run CMDPath
This can well solve the problem of window sensitivity. Actually, it's very simple and of course very useful.
This method can be used to solve the automatic login of many software that require entering username and password, with a wide range of applications.
Regarding the symbol problem in the VBS SendKey function, I was referring to the parenthesis display problem under telnet, but now it has been solved. I feel that the combination of batch scripts and VBS scripts is very promising~~~~
|
|
2007-4-19 22:22 |
|
|
xycoordinate
中级用户
  
积分 493
发帖 228
注册 2007-2-16 来自 安徽
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
tel.cmd
@ECHO OFF
ECHO .
ECHO .
ECHO .
ECHO .
ECHO 注意:即将开始远程批配置请关闭其它可执行程序
ECHO 注意:配置过程中不要使用鼠标及键盘
ECHO .
ECHO .
ECHO .
ECHO .
ECHO 按任意键开始EIA远程批配置
pause>nul
for /f %%i in (list.txt) do start telnet 202.76.56.107 && cscript //nologo telsvr.vbs %%i && echo %%i done!>>log.txt
ECHO 批量配置完成
pause>nul
telsh.vbs
set tel=WScript.CreateObject("WScript.Shell")
temp=WScript.Arguments.Item(0)
WScript.Sleep 5000
tel.SendKeys "admin{ENTER}"
WScript.Sleep 1500
tel.SendKeys "admin{ENTER}"
WScript.Sleep 1500
红色处,好像有错误!?
修改+补充
tel.cmd
@ECHO OFF
ECHO .
ECHO .
ECHO .
ECHO .
ECHO 注意:即将开始远程批配置请关闭其它可执行程序
ECHO 注意:配置过程中不要使用鼠标及键盘
ECHO .
ECHO .
ECHO .
ECHO .
ECHO 按任意键开始EIA远程批配置
pause>nul
for /f %%i in (list.txt) do start telnet %%i && cscript //nologo telsvr.vbs %%i && echo %%i done!>>log.txt
ECHO 批量配置完成
pause>nul
telsvr.vbs
set tel=WScript.CreateObject("WScript.Shell")
temp=WScript.Arguments.Item(0)
WScript.Sleep 5000
tel.SendKeys "admin{ENTER}"
WScript.Sleep 1500
tel.SendKeys "admin{ENTER}"
WScript.Sleep 1500
list.txt
192.168.0.1
192.168.0.2
192.168.0.3
……
根据实际情况,修改list.txt
Last edited by xycoordinate on 2009-7-10 at 05:50 ]
tel.cmd
@ECHO OFF
ECHO .
ECHO .
ECHO .
ECHO .
ECHO Note: The remote batch configuration is about to start, please close other executable programs
ECHO Note: Do not use the mouse and keyboard during the configuration process
ECHO .
ECHO .
ECHO .
ECHO .
Press any key to start EIA remote batch configuration
pause>nul
for /f %%i in (list.txt) do start telnet %%i && cscript //nologo telsvr.vbs %%i && echo %%i done!>>log.txt
ECHO Batch configuration completed
pause>nul
telsvr.vbs
set tel=WScript.CreateObject("WScript.Shell")
temp=WScript.Arguments.Item(0)
WScript.Sleep 5000
tel.SendKeys "admin{ENTER}"
WScript.Sleep 1500
tel.SendKeys "admin{ENTER}"
WScript.Sleep 1500
list.txt
192.168.0.1
192.168.0.2
192.168.0.3
……
Modify list.txt according to the actual situation
Last edited by xycoordinate on 2009-7-10 at 05:50 ]
|
|
2009-7-10 05:35 |
|