Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用bat文件在visual studio命令提示符中执行多个命令_C#_Visual Studio 2010_Wcf_Svcutil.exe - Fatal编程技术网

C# 使用bat文件在visual studio命令提示符中执行多个命令

C# 使用bat文件在visual studio命令提示符中执行多个命令,c#,visual-studio-2010,wcf,svcutil.exe,C#,Visual Studio 2010,Wcf,Svcutil.exe,您好,我有多个命令需要在visual studio命令提示符中执行 C:\iwatch\trunk\CPCE Client\mycalenderserviceclient svcutil http://localhost:1544/mycalenderservice/mycalenderservice.svc /l:C# /out:Reference.cs /config:app.config /ct:System.Collections.Generic.List`1 /t:code /n:*

您好,我有多个命令需要在visual studio命令提示符中执行

C:\iwatch\trunk\CPCE Client\mycalenderserviceclient
svcutil http://localhost:1544/mycalenderservice/mycalenderservice.svc /l:C# /out:Reference.cs /config:app.config  /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.mycalenderservice/r:"C:\iwatch\trunk\CPCE Services\DataModel\obj\Debug\DataModel.dll
C:\iwatch\trunk\CPCE Client\mydatecontrolsserviceclient
svcutil http://localhost:7777/mydatecontrolsservice/mydatecontrolsservice.svc /l:C# /out:Reference.cs /config:app.config  /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.mydatecontrolsservice /r:"C:\iwatch\trunk\CPCE Services\DataModel\obj\Debug\DataModel.dll

我想在visual studio命令提示符下使用批处理文件(.bat)一次性执行这4个命令。

这是在现有文件中执行的,还是您正在尝试创建批处理文件,然后从代码中执行?如果是前者,请研究方法。如果是后者,请研究将文本写入文件(
file.Create(string)
StreamWriter.Write(string)
),然后使用前面提到的
过程。开始(string)
。请不要多次发布您的问题()。如果这个问题没有引起注意,试着编辑它,让它更清楚你在问什么。