Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I need to run .cmd file before the project is getting build.Since,that .cmd file generates one header file which is required for successful build of this project.How to give the command line syntax in prebuild event?

Thanks.
Posted

If you build from the command line (?), the most obvious way is to run both your command file and your build from a new command file, the one after the other.
 
Share this answer
 
Go to Build Events > Pre Build Events and enter the command line you want. Be sure to give the full path of the cmd file, and enclose it in quotes if the path has spaces. You can use dos piping like this:
c:\project\mycmd.cmd > new.h
There are some macros that might be useful. Click on the Macros button to see list.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900