i got the solution to catch the msg..
to a text file only on failure
----------------------------------------------------------------------------------------------
echo.-- %Date% %Time% -- >>c:\logfile.txt
REM Starts JOB (jobID 1)
"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE" -S HDBLVTXDEAM4271-E -Q "EXEC Account.dbo.PROC_Fetch_Details_Start 1">>c:\logfile.txt
----------------------------------------------------------------------------------------------
small problem.. i can't catch the success of the batchfile as of now with the above statement i can catch only if there is any failure of the script\interalerrors
on scuccess log shows as below
------------------------------------------
-- Fri 03/06/2009 15:16:23.84 --
------------------------------------------
Please help me if i can capture success