K
king
The below mentioned thing is a dos batch file.
Can I write the whole thing in perl without using any modules like
file::compare, etc.
check32 pd k0018f00 > test.log
fc /l good1.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
check32 pd k0018090 > test.log
fc /l good2.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
check32 pd k0018088 > test.log
fc /l good3.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
check32 pd k0018170 > test.log
fc /l good4.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
Can I write the whole thing in perl without using any modules like
file::compare, etc.
check32 pd k0018f00 > test.log
fc /l good1.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
check32 pd k0018090 > test.log
fc /l good2.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
check32 pd k0018088 > test.log
fc /l good3.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log
check32 pd k0018170 > test.log
fc /l good4.log test.log > comp.log
find "no differences encountered" comp.log
if errorlevel 1 goto end
echo Passed test.
del test.log
del comp.log