China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-27 13:23
中国DOS联盟论坛 » 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. View 2,680 Replies 20
Floor 16 Posted 2007-04-19 02:29 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 302
Posts 138
Joined 2007-03-29 02:33
19-year member
UID 83224
Gender Male
Status Offline
Bump up, Brother everest79, please help when you see it
Floor 17 Posted 2007-04-19 03:39 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 302
Posts 138
Joined 2007-03-29 02:33
19-year member
UID 83224
Gender Male
Status Offline
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.
Floor 18 Posted 2007-04-19 04:00 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 302
Posts 138
Joined 2007-03-29 02:33
19-year member
UID 83224
Gender Male
Status Offline
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.
Floor 19 Posted 2007-04-19 09:53 ·  中国 广东 广州 黄埔区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
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.
Floor 20 Posted 2007-04-19 22:22 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 302
Posts 138
Joined 2007-03-29 02:33
19-year member
UID 83224
Gender Male
Status Offline
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~~~~
Floor 21 Posted 2009-07-10 05:35 ·  中国 安徽 马鞍山 电信
中级用户
★★
Credits 493
Posts 228
Joined 2007-02-16 00:38
19-year member
UID 79596
Gender Male
From 安徽
Status Offline

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 ]
Forum Jump: