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-07-29 19:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Want to use batch processing to achieve time calibration View 2,348 Replies 24
Original Poster Posted 2008-12-11 12:48 ·  中国 福建 泉州 移动
初级用户
★★
Credits 134
Posts 54
Joined 2008-11-19 11:47
17-year member
UID 131429
Gender Male
Status Offline
Connect via telnet

telnet stdtime.gov.hk 13


But unable to get output information, can any expert help.
Floor 2 Posted 2008-12-11 13:17 ·  中国 福建 泉州 移动
初级用户
★★
Credits 134
Posts 54
Joined 2008-11-19 11:47
17-year member
UID 131429
Gender Male
Status Offline
As long as third-party software is not used, other methods are also acceptable.
Floor 3 Posted 2008-12-11 13:44 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
NET TIME

Function: Synchronize the computer's clock with the time of another computer or domain.
Command format: net time ]
Parameter introduction:
<1>\\computername The name of the server to check or synchronize.
<2>/domain Specify the domain to synchronize time with.
<3>/set Synchronize the computer's clock with the clock of the specified computer or domain.
Floor 4 Posted 2008-12-11 15:25 ·  中国 广东 深圳 电信
初级用户
★★
游手好闲 + 无所事事 ..
Credits 194
Posts 167
Joined 2007-04-30 09:43
19-year member
UID 87022
Gender Male
Status Offline
Ask about HAT
Can net time obtain time from a certain domain name?
net time /domain:telnet stdtime.gov.hk has no response.

Synchronizing time with IP or computer name in the same LAN can still be done, how to synchronize outside the LAN?
Floor 5 Posted 2008-12-11 17:05 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Then use a VPN to connect to an external server... This should work now, right?

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 6 Posted 2008-12-11 17:09 ·  中国 广东 深圳 电信
初级用户
★★
游手好闲 + 无所事事 ..
Credits 194
Posts 167
Joined 2007-04-30 09:43
19-year member
UID 87022
Gender Male
Status Offline
How many people can have a VPN?

Let's get back to the original poster's topic, how to intercept the information of telnet....?

[ Last edited by exzzz on 2008-12-11 at 17:10 ]
Floor 7 Posted 2008-12-11 18:07 ·  中国 山西 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Welcome to Microsoft Telnet Client

Escape character is 'CTRL+]'

Microsoft Telnet> set ?
bsasdel Backspace key acts as delete
crlf New line mode - causes return key to send CR and LF
delasbs Send Delete key as backspace
escape x x is the escape character to enter telnet client prompt
localecho Turn on localecho
logfile x x is the current client's log file
logging Turn on logging
mode x x is console or stream
ntlm Turn on NTLM authentication
term x x is ansi, vt100, vt52 or vtnt
Microsoft Telnet>
Floor 8 Posted 2008-12-11 20:24 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
start telnet stdtime.gov.hk 13 -f test.txt
ping 127.0.01
taskkill /im telnet.exe

TEST.TXT will save the output information

[ Last edited by yishanju on 2008-12-12 at 11:26 ]

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 9 Posted 2008-12-11 20:25 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
C:\Documents and Settings\haige\Desktop>telnet /?

telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]]
-a Attempts to log in automatically. Same as the -l option except using the currently logged-in username.
-e Skip the character to enter the telnet client prompt.
-f The file name for client login.
-l Specifies the username for logging in on the remote system.
Requires the remote system to support the TELNET ENVIRON option.
-t Specifies the terminal type.
Supported terminal types are only: vt100, vt52, ansi, and vtnt.
host Specifies the hostname or IP address of the remote computer to connect to.
port Specifies the port number or service name.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 10 Posted 2008-12-11 21:24 ·  中国 福建 泉州 电信
初级用户
★★
Credits 134
Posts 54
Joined 2008-11-19 11:47
17-year member
UID 131429
Gender Male
Status Offline
The output is available, but there is still a problem that the any key cannot be input. If telnet cannot be ended, the setting of time cannot be automatically carried out. Also, the problem that the information on the screen cannot be closed is another issue...
Floor 11 Posted 2008-12-12 10:50 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Can't get around it
...

Using START should be okay
START telnet stdtime.gov.hk 13 -f test.txt

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 12 Posted 2008-12-12 10:51 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
After running TELNET, directly end the process

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 13 Posted 2008-12-12 10:56 ·  中国 广东 深圳 电信
初级用户
★★
游手好闲 + 无所事事 ..
Credits 194
Posts 167
Joined 2007-04-30 09:43
19-year member
UID 87022
Gender Male
Status Offline
The person upstairs, I tried it, but it didn't work. After taskkill, there is no output content in telnet... Maybe telnet must be after Q to save the log.
Floor 14 Posted 2008-12-12 11:06 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
You forced me to do this,,
I use the ultimate move

START telnet stdtime.gov.hk 13 -f %cd%\test.txt

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 15 Posted 2008-12-12 11:08 ·  中国 北京 鹏博士长城宽带
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
START telnet stdtime.gov.hk 13 -f c:\test.txt

Got it, right?

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Forum Jump: