Welcome to Web-News
A Web-based News Reader
Subject Re: .bat file to help compile easier - dmd/build
From Daniel de Kok <me@nowhere.nospam>
Date Fri, 2 Jan 2009 19:53:45 +0000 (UTC)
Newsgroups digitalmars.D.learn

On Fri, 02 Jan 2009 14:17:17 -0500, Michael P. wrote:
> But, mario will execute even if there are errors found by dmd. Is there
> anything that I can use to see if errors were found, and if there isn't,
> execute it, and if there is, don't execute it? DMD1.036, Windows XP,
> Build/Bud 3.04

I haven't seriously used DOS/Windows since halfway the nineties, but
didn't there use to be a 'pause' command? That will allow you to view
build output, and possibly to use Ctrl + C to stop the batch file.

Or you could also use ERRORLEVEL after running 'build':

IF ERRORLEVEL EQU 0 mario

-- Daniel

Recent messages in this thread
 
-# .bat file to help compile easier - dmd/build Michael P. 02-Jan-2009 02:17 pm
.|# Re: .bat file to help compile easier - dmd/build (Current message) Daniel de Kok 02-Jan-2009 02:53 pm
.|# Re: .bat file to help compile easier - dmd/build Derek Parnell 02-Jan-2009 03:13 pm
.-# Re: .bat file to help compile easier - dmd/build Jarrett Billingsley 02-Jan-2009 04:21 pm
.||# Re: .bat file to help compile easier - dmd/build Michael P. 02-Jan-2009 09:55 pm
.|-# Re: .bat file to help compile easier - dmd/build torhu 03-Jan-2009 08:13 am
.|.\# Re: .bat file to help compile easier - dmd/build Michael P. 03-Jan-2009 03:25 pm
.|# Re: .bat file to help compile easier - dmd/build Bill Baxter 02-Jan-2009 04:35 pm
.-# Re: .bat file to help compile easier - dmd/build Tim M 02-Jan-2009 07:22 pm
.|-# Re: .bat file to help compile easier - dmd/build Don 03-Jan-2009 07:02 am
.|.-# Re: .bat file to help compile easier - dmd/build Tim M 03-Jan-2009 07:35 pm
.|..-# Re: .bat file to help compile easier - dmd/build Don 05-Jan-2009 06:22 am
.|...\# Re: .bat file to help compile easier - dmd/build Sean Kelly 05-Jan-2009 06:50 pm
.|# Re: .bat file to help compile easier - dmd/build Bill Baxter 02-Jan-2009 04:37 pm
.|# Re: .bat file to help compile easier - dmd/build Jarrett Billingsley 02-Jan-2009 05:20 pm
.|# Re: .bat file to help compile easier - dmd/build Bill Baxter 02-Jan-2009 07:29 pm
.|# Re: .bat file to help compile easier - dmd/build Jarrett Billingsley 02-Jan-2009 08:20 pm
.\# Re: .bat file to help compile easier - dmd/build Jarrett Billingsley 02-Jan-2009 08:21 pm