TIP: Click on subject to list as thread! ANSI
echo: makenl_ng
to: BJRN FELTEN
from: MARK LEWIS
date: 2014-11-25 08:15:00
subject: Errorlevels

 On Tue, 25 Nov 2014, Bj”rn Felten wrote to All:

 BF>    Anyway, we can leave that be -- even if I doubt that there are
 BF> that many systems out there that actually uses those error levels
 BF> -- but one level I would like is for "Unchanged output file will
 BF> NOT be submitted".

why not detect that in your script with diff or compare?

simplistic eg:
@echo off
set newhatch=no
rem set a non-changing name to hold our current netseg
rem myseg.cur is the current netseg that is published
iff not exist myseg.cur copy myseg.now myseg.cur
makenl                       ; output is myseg.now
diff myseg.cur myseg.now
if errorlevel 1 set newhatch=yes
if '%newhatch%' == 'no' goto end
rem diff says there's a difference between the files
rem so let's update the current one with the new one
copy myseg.now myseg.cur
rem and hatch it
hatch area whatever file myseg.cur desc "my new netseg" replace myseg.cur
rem all done!
:end


)\/(ark

* Origin: (1:3634/12)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.