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

Post build events

2 views
Skip to first unread message

ssylee

unread,
Jul 11, 2008, 9:00:04 PM7/11/08
to
I'm trying to define somewhere in my SOURCES file to execute a certain batch
file after my DDK project has been built successfully. How would I go about
and achieve that in the SOURCES file?

Tanya Radeva [MSFT]

unread,
Jul 12, 2008, 1:33:00 AM7/12/08
to
Currently we do not have a SOURCES file macro to run custom batch file as a
postbuild step.

Best regards,
Tanya

ssylee

unread,
Jul 12, 2008, 1:39:00 AM7/12/08
to
What about in the Makefile that I have a macro that would run a custom batch
file as a postbuild step? Would that be the same problem as the support for
the postbuild step in a SOURCES file macro?

Maxim S. Shatskih

unread,
Jul 12, 2008, 3:42:50 AM7/12/08
to
I think this is doable by specifying the BAT file in MAKEFILE.INC

You must also include some item (forgot what) to SOURCES for MAKEFILE.INC
to be employed.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com

"ssylee" <ssy...@discussions.microsoft.com> wrote in message
news:D884B68C-5408-4496...@microsoft.com...

Tanya Radeva [MSFT]

unread,
Jul 12, 2008, 12:17:01 PM7/12/08
to
Makefile.inc is not ment to be employed in the post build. The Build utility
will spawn NMAKE to execute this file before it searches the directory list
in the dirs file.

But, yes - you can put some batch file commands (cd , copy, etc) in the
makefile.inc.

Best regards,
Tanya

Pavel A.

unread,
Jul 12, 2008, 12:40:40 PM7/12/08
to
"ssylee" <ssy...@discussions.microsoft.com> wrote in message
news:D884B68C-5408-4496...@microsoft.com...

Why to do this in the SOURCES?
Can you check exit status of build.exe - where ever you launch it from -
and then run your batch file?

--PA

ssylee

unread,
Jul 14, 2008, 1:25:01 PM7/14/08
to
Thank you all for your reply. Pavel's idea on checking the status of
build.exe sounds promising, although I'm not sure how to do that. Could you
perhaps give me an example or a link to an example?

Pavel A.

unread,
Jul 14, 2008, 5:20:24 PM7/14/08
to
"ssylee" <ssy...@discussions.microsoft.com> wrote in message
news:02FA1563-6F9E-4349...@microsoft.com...

> Thank you all for your reply. Pavel's idea on checking the status of
> build.exe sounds promising, although I'm not sure how to do that. Could
> you
> perhaps give me an example or a link to an example?

Please see the Windows command line help on how to check exit status of a
program.

........
build.exe <options>
if %errorlevel% GTR 1 goto :fail

Regards,
--PA

0 new messages