![]() |
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-09-30 01:36 |
47,813 topics / 349,918 posts / today 0 new / 48,278 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Want to use batch processing to achieve time calibration |
| Printable Version 2,665 / 24 |
| Floor1 wangff | Posted 2008-12-11 12:48 |
| 初级用户 Posts 54 Credits 134 | |
|
Connect via telnet
But unable to get output information, can any expert help. |
|
| Floor2 wangff | Posted 2008-12-11 13:17 |
| 初级用户 Posts 54 Credits 134 | |
|
As long as third-party software is not used, other methods are also acceptable.
|
|
| Floor3 HAT | Posted 2008-12-11 13:44 |
| 版主 Posts 5,017 Credits 9,023 | |
NET TIME |
|
| Floor4 exzzz | Posted 2008-12-11 15:25 |
| 初级用户 Posts 167 Credits 194 | |
|
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? |
|
| Floor5 yishanju | Posted 2008-12-11 17:05 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
Then use a VPN to connect to an external server... This should work now, right?
|
|
| Floor6 exzzz | Posted 2008-12-11 17:09 |
| 初级用户 Posts 167 Credits 194 | |
|
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 ] |
|
| Floor7 qzwqzw | Posted 2008-12-11 18:07 |
| 银牌会员 Posts 636 Credits 2,343 | |
|
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> |
|
| Floor8 yishanju | Posted 2008-12-11 20:24 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
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 ] |
|
| Floor9 yishanju | Posted 2008-12-11 20:25 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
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. |
|
| Floor10 wangff | Posted 2008-12-11 21:24 |
| 初级用户 Posts 54 Credits 134 | |
|
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...
|
|
| Floor11 yishanju | Posted 2008-12-12 10:50 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
Can't get around it
... Using START should be okay START telnet stdtime.gov.hk 13 -f test.txt |
|
| Floor12 yishanju | Posted 2008-12-12 10:51 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
After running TELNET, directly end the process
|
|
| Floor13 exzzz | Posted 2008-12-12 10:56 |
| 初级用户 Posts 167 Credits 194 | |
|
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.
|
|
| Floor14 yishanju | Posted 2008-12-12 11:06 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
You forced me to do this,,
I use the ultimate move START telnet stdtime.gov.hk 13 -f %cd%\test.txt |
|
| Floor15 yishanju | Posted 2008-12-12 11:08 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
START telnet stdtime.gov.hk 13 -f c:\test.txt
Got it, right? |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |