Monday 20 July 2015

Job Failed----Error Log should be printed automatically.

Script In BODI :


$G_PRINT = replace_substr(get_error_filename(),' ','*');
$G_PRINT2 = word_ext($G_PRINT, 8, '/');
$g_print3 = substr($g_print,1,index( $g_print,'/error_',1)-1);
exec('c:\a1.bat', $g_print3||' '||$g_print2 , 8);

Batch File Script
c:
cd\
cd %1
cd\

type %2 > c:\echo11.txt
lpr -S 192.168.10.99 -P M3027 -J error_logs c:\echo11.txt

=======================================

Other commands that can be written in Batch file Script 
For copying the error file to other folder
------------------------
copy %2 c:\echo11.txt

type %2 > c:\echo11.txt

For Appending the data of 1 file in another
---------------------
type echo11.txt >> abc.txt

COURTS : CASES : LAWYERS : JUDGES : ::::::::: VICTIMS : ACCUSED

  *We have got so many SMART people in our COUNTRY. *we have got so many IIT completed SMART students in our COUNTRY. * we have got so many ...