I am trying to execute a batch file from a perl code and its executing fine with the folowing code
Code: ( text )
`C:\temp\sample .bat`
,but another problem is occuring.....wh en there is some error in the .bat file(sample.bat ) the perl should not execute it,and should throw some error message,but in case of error in the .bat file also,it is executing...... ..Is there any way to capture in the perl code that if there is some error in the sample.bat file then it should throw some error message and should not execute the .bat file
Code: ( text )
`C:\temp\sample .bat`
,but another problem is occuring.....wh en there is some error in the .bat file(sample.bat ) the perl should not execute it,and should throw some error message,but in case of error in the .bat file also,it is executing...... ..Is there any way to capture in the perl code that if there is some error in the sample.bat file then it should throw some error message and should not execute the .bat file