Execute Shell Script and Batch Files
-
Hello. How do I execute certain batch files and shell scripts along with my project? Are these settings specified in
Pre Build
andPost Build
events in visual studio? Thanks for any input.This world is going to explode due to international politics, SOON.
-
Hello. How do I execute certain batch files and shell scripts along with my project? Are these settings specified in
Pre Build
andPost Build
events in visual studio? Thanks for any input.This world is going to explode due to international politics, SOON.
-
AmbiguousName wrote:
Are these settings specified in
Pre Build
andPost Build
events in visual studio? Thanks for any input.Yes, depending on which part of the build process you want them.
All right let's suppose I want Pre Build. Now how do I tell Visual Studio to use
xxxx.sh
andxxxx.bat
files?This world is going to explode due to international politics, SOON.
-
All right let's suppose I want Pre Build. Now how do I tell Visual Studio to use
xxxx.sh
andxxxx.bat
files?This world is going to explode due to international politics, SOON.
-
Go to the Project Properties, click on Build Events, Pre-build, and add the details as required.
Since I have never done this, so bear with me. Do I have to add some kind of path? Suppose a xxxx.bat file is at desktop, would the entry be like this:
call ..\..\Desktop\xxx.bat
?This world is going to explode due to international politics, SOON.
-
Since I have never done this, so bear with me. Do I have to add some kind of path? Suppose a xxxx.bat file is at desktop, would the entry be like this:
call ..\..\Desktop\xxx.bat
?This world is going to explode due to international politics, SOON.
Yes, the same as you would do in any application or command shell. However it probably makes more sense to add the batch files into your project directory so they stay with the project. That also allows you to manage them within your source control system as well.