用于运行c#文件的批处理代码 [英] Batch code to run a c# file

查看:63
本文介绍了用于运行c#文件的批处理代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个批处理文件添加到任务计划程序中。



批处理文件包含从项目中调用ac#文件的功能..



如何为此操作编写批处理文件。



请帮助



提前感谢

I want to write a batch file to add in task scheduler.

the batch file contains the function to call a c# file from project..

how to write the batch file for this operation.

pls help

thanks in advance

推荐答案

调用批处理文件RUNME.BAT,然后制作内容:

Call the batch file "RUNME.BAT", then make it's content:
PathToTheExecutable\ExecutableFileName

因此,如果您的应用程序位于D驱动器上,在Temp文件夹中,并且名为MyApp.exe,则teh文件将包含:

So if your app is on the D drive, in the Temp folder, and called MyApp.exe, then teh file will contain:

D:\Temp\MyApp


这篇关于用于运行c#文件的批处理代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆