Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ISBuild and Errorlevel

9 views
Skip to first unread message

Dan Scarborough

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
I'm having a problem using the errorlevel function when building a
script from a batch file.
Here's the cut down version:

@Echo off
setlocal
ISbuild -p"D:\Users\Net\Install\Net\SDH" -m%MEDIA%
-b"D:\SetupImages\Sdh\%MEDIA%\%ISCOMPILETYPE%" > Report.txt
if errorlevel 1 echo "Something went wrong"

If something actually does go wrong with the build (like someone's
aleady got the "Disk1" directory open in windows explorer and ISBuild
can't delete it, the errorlevel clause is not triggered.

IS as follows:
---Program Files---
IDE.exe-5.50.136
BuildWiz.dll-5.50.135
Compiler.dll-5.50.134
ZDataI51.dll-5.50.131
ISEdt.dll-5.50.134
ISCore.dll-5.50.135
Build.dll-5.50.135
ISBuild.exe-5.50.134
ISCAB.exe-5.50.134
Compile.exe-5.50.134

on Windows NT Server 4.0 (Service Pack 5). Has anybody got any ideas as
to why this is failing?
It works fine for "Compile.exe".

Any help would be appreciated.

Thanks
Dan
--
Dan Scarborough
The Network Design House
2 Parliament Court
Artillery Lane
London E1 7NA.
Tel: +44 (0)171 375 0909
Fax: +44 (0)171 375 0505
Technical Support: +44 (0)171 366 0556
http://www.NDH.co.uk

Uridium88

unread,
Jul 11, 2000, 3:00:00 AM7/11/00
to
ERRORLEVEL processes higher numbers first so:

if ERRORLEVEL 2 ...
if ERRORLEVEL 1...

works, but this would not:

if ERRORLEVEL 1...
if ERRORLEVEL 2...

I know it's not much, but I hope it helps.

James Johnson

"Dan Scarborough" <d...@ndh.co.uk> wrote in message
news:3891EADA...@ndh.co.uk...

0 new messages