如何从批处理文件中执行c#console应用程序

mah*_*esh 0 c# batch-file console-application visual-studio-2010

我有应该在启动任务中执行的示例控制台应用程序,我想通过批处理文件执行控制台应用程序,请知道执行它的正确语法.

Joe*_*oey 5

"C:\Users\mahesh\Documents\Visual Studio Projects\Foo\bin\Debug\Foo.exe"
Foo
Foo.exe
"\Some other folder\foo"
Run Code Online (Sandbox Code Playgroud)

所有可能的选项如何执行它,取决于程序所在的位置和当前工作目录是什么...