Thanks Winder, Your help is really very helpfull to me, though I am not able to execute the last discussed codes, but still able to learn few things from you. I am pasting the code below, which I tried to run at command prompt.
C:\>set ip=132.122.6.5 132.122.6.4
C:\>for /F "tokens=1* delims= " %%i in ("%ip%") do (
%%i was unexpected at this time.
C:\>50hr8_main.logping -n 2 %%i > nul
'50hr8_main.logping' is not recognized as an internal or external command,
operable program or batch file.
C:\>50hr8_main.logif errorlevel 1 (
'50hr8_main.logif' is not recognized as an internal or external command,
operable program or batch file.
C:\> set msg=Ping failed: %%i
C:\> blat c:\emp.txt -to
[email protected] -subject %msg%
Blat v2.6.1 w/GSS encryption (build : Nov 18 2006 11:59:59)
Blat saw and processed these options, and was confused by the last one...
-to
[email protected] -subject Ping
failed:
Do not understand argument: failed:
Win32 console utility to send mail via SMTP or post to usenet via NNTP
by P.Mendes,M.Neal,G.Vollant,T.Charron,T.Musson,H.Pesonen,A.Donchey,C.Hyde
http://www.blat.net
syntax:
Blat <filename> -to <recipient> [optional switches (see below)]
Blat -install <server addr> <sender's addr> [<try>[<port>[<profile>]]] [-q]
Blat -profile [-delete | "<default>"] [profile1] [profileN] [-q]
Blat -h
hare krishna
Alok