How to create .bat file to run c# code? -


What I want is that: I have AC # code and I create a .bat file on it to create it Wish desktop So when I run a .bat file from the desktop, it should execute the C # code.

Is there a way to change the settings or properties of the C # project before compiling to create a .bat file? Run this C # code?

Compile the C # code in the console application.

Then run this application using the batch file.

Create a file on your desktop called batch.bat (or whatever .bat) and put it in the following:

  @echo off [Full path for your application ] \ [app name]. Exe [no extra parameters]  

--- Optional ----

In the project properties, the option is to Create Event Put the following in the build command line:

  echo the echo off & gt; [Path for desktop batchfile] .bet resonance $ (target path)> & gt; [Path for desktop batch file] .bat  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -