[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

execute command after build

Posted on 1998-05-26
9
Medium Priority
?
210 Views
Last Modified: 2013-12-03
In Visual C++ 4.2, is there any way to automatically execute a command (exe) after a successful build?
0
Comment
Question by:faster
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1404236
I don't have the version 4.2. Since you are asking this question, it seems different from the version 5.0. But you should be able to do it by editting the .mak directly.
0
 
LVL 7

Author Comment

by:faster
ID: 1404237
Is there ant way provided by the IDE itself?  I don't like modify the make file manually,
0
 
LVL 11

Expert Comment

by:alexo
ID: 1404238
Create a new project in your workspace.  Make it a "makefile".  Make it a default project.  Chose any command you wish as the build procedure.  Make your original project a subproject of the new one.

Now, whenever you build the new project, the subproject will be buit first.

0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 7

Author Comment

by:faster
ID: 1404239
Sorry, I want a seamless solution by the IDE, if the IDE itself can't do this cleanly, I'd rather not have it.

So it seems that there is no such feature in VC.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1404240
If you want the IDE of 4.2 to automatically and transparently execute a command after any successful build then no, you cannot do it.

You do however have several workarounds:
1. chensu's suggestion of editing the .MAK files.
2. My suggestion of using subprojects.
3. Create a "tool" that will invoke the makefile and your command.

0
 
LVL 3

Accepted Solution

by:
Norbert earned 200 total points
ID: 1404241
There is a simple solution - I have tested it and it works:
Menu Build -> Settings  
custom build
 Build commands:
       $(TargetPath)
Output File
       NULL
my application runs now automatically after build
Hope that helps
   Norbert


0
 
LVL 7

Author Comment

by:faster
ID: 1404242
Thanks Norbert.  How come I did not the "custom build" tab.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1404243
So, that is the same as Visual C++ 5.0.
0
 
LVL 7

Author Comment

by:faster
ID: 1404244
Sorry that I confused you, chensu.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question