InterviewSolution
| 1. |
Solve : Help with batch file [costum message]? |
|
Answer» so.... Microsoft Windows [Version 6.1.7601] Trying to understand why Ping as it is is not good enough? As far as shaping the output to say WHATEVER you want, it can be done, but not in real time. There would be a slight delay in what is measured and then what is parsed as the output to the display. To get rid of this delay would require writing your own Ping program so that the output is as you want it without having to reshape it to an alternate display layout to user.it is ok if there is a little delay . . . goes fine with me soooo can you learn me something ? [say yes XD] if yes, is it possible to send a personal message on this forum [ill paste in my code so if you want, you can help me a bit] I agree with Dave, but if you must do it then try this By the way, no PMs, whatever help you get or don't get is here in the THREAD that you started. Code: [Select]@echo off SET host=www.google.com echo Pinging %host% set status=disconnected ping -n 1 %host%>nul && set status=connected echo Connection status : %status% if "%status%"=="connected" for /f "tokens=1-7 delims== " %%A in ('ping -n 1 %host% ^| find "Reply from"') do echo Your ping is %%G The output was: Code: [Select]Pinging www.google.com Connection status : connected Your ping is 21msThank you man appreciate that . . . Ill send you finished version score it from 1 to 5 please and tell me what you think i should add in . thnx again 4 reply and support and "PMs" what is this ? i'm from Slovenija so i don't know much about English spech shortcustQuote from: aljax and "PMs"???what is this ? Quote from: aljax if yes, is it possible to send a personal message on this forum [ill paste in my code so if you want, you can help me a bit]Thanks everybody [two man] who replied so fast and with great support |
|