中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-01 06:01
47,813 topics / 349,918 posts / today 0 new / 48,279 members
DOS批处理 & 脚本技术(批处理室) » Please provide the specific Chinese text content of the script so that I can translate it to English. Currently, the content you provided is just a question "求脚本中telnet类似ftp -s:的调用命令", and there is no specific script content. Please supply the relevant script content.
Printable Version  3,167 / 20
Floor16 lililulula Posted 2007-04-19 02:29
中级用户 Posts 138 Credits 302
Bump up, Brother everest79, please help when you see it
Floor17 lililulula Posted 2007-04-19 03:39
中级用户 Posts 138 Credits 302
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.
Floor18 lililulula Posted 2007-04-19 04:00
中级用户 Posts 138 Credits 302
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.
Floor19 everest79 Posted 2007-04-19 09:53
金牌会员 Posts 1,127 Credits 2,564
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.
Floor20 lililulula Posted 2007-04-19 22:22
中级用户 Posts 138 Credits 302
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~~~~
Floor21 xycoordinate Posted 2009-07-10 05:35
中级用户 Posts 228 Credits 493 From 安徽

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 ]
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023