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!
Credits 2,000 Posts 621 Joined 2007-01-01 00:00 19-year member UID 75212 Gender Male
Status Offline
if not defined ip (echo Network is not reachable&goto :eof)
echo quit|telnet %ip% %port%||(echo %smtp% telnet not reachable, maybe your %port% port is not open&goto :eof)
There is still a problem with this sentence!!
Not being able to ping does not mean the IP is not found;
That is to say, connecting to %smtp% 25, using ping to define %IP% can still be successful...
telnet %ip% %port% ;
Unable to connect to %ip% %port% may mean your %port% port is not open;
This statement is incorrect.
The port of this machine connecting to %ip% is not necessarily %port%;
So it is still recommended to use
ping %ip% -n 1 >>nul 2>>nul || echo ..& goto :eof
If ping is successful; naturally can connect to the %port% port of the ip;
Credits 4,103 Posts 1,744 Joined 2006-01-20 13:00 20-year member UID 49241 Gender Male From 甘肃.临泽
Status Offline
Originally posted by bjsh at 2007-4-29 04:06:
if not defined ip (echo Network is not connected&goto :eof)
echo quit|telnet %ip% %port%||(echo %smtp% telnet not connected, maybe your %port% port is not enabled&goto :eof)
There is still a problem with this sentence!!
pi ...
I think these large websites still can't be pinged, so the address can't be resolved, heh heh
Credits 2,000 Posts 621 Joined 2007-01-01 00:00 19-year member UID 75212 Gender Male
Status Offline
Can resolve the address even if can't ping;
I just ran out of money in the network card today;
Came here using a proxy;
Can't test with 56 anymore;
Still the same problem you mentioned;
Proxy web page works;
Doesn't work under command line;
Something worth researching
Credits 4,103 Posts 1,744 Joined 2006-01-20 13:00 20-year member UID 49241 Gender Male From 甘肃.临泽
Status Offline
Originally posted by bjsh at 2007-4-29 04:06:
if not defined ip (echo Network is not connected&goto :eof)
echo quit|telnet %ip% %port%||(echo %smtp% telnet is not connected, maybe your %port% port is not enabled&goto :eof)
This sentence is still problematic ah!!
pi ...
The machine in my internet café can ping smtp.163.com, but just can't connect via telnet. I checked and it seems the service was deleted, so it's better to telnet first before.
Credits 4,103 Posts 1,744 Joined 2006-01-20 13:00 20-year member UID 49241 Gender Male From 甘肃.临泽
Status Offline
Originally posted by fengzi at 2007-5-5 00:07:
Can this add the function to find the sender's account password from the text and also extract the address from the text? ```
Everything is possible