为visaul studio 命令创建批处理文件 [英] Creating a batch files for visaul studio command

查看:39
本文介绍了为visaul studio 命令创建批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 2 个命令需要使用批处理文件在 Visual Studio 命令提示符下一次执行.

Hi i have 2 commands need to execute in visual studio command prompt at one time using batch file.

C:\iwatch\trunk\CPCE Client\InterviewManagementServiceClient>svcutil http://localhost:19021/InterviewManagementService/InterviewManagementService.svc/l:C#/out:Reference.cs/ct:System.Collections.Generic.List`1/t:code/n:*,iWatch.InterviewManagementService

C:\iwatch\trunk\CPCE Client\InterviewManagementServiceClient>svcutil http://localhost:19021/InterviewManagementService/InterviewManagementService.svc /l:C# /out:Reference.cs /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.InterviewManagementService

C:\iwatch\trunk\CPCE Client\EfileServiceClient>svcutil http://localhost:19012/EfileService/EfileService.svc/l:C#/out:Reference.cs/ct:System.Collections.Generic.List`1/t:code/n:*,iWatch.EfileService

C:\iwatch\trunk\CPCE Client\EfileServiceClient>svcutil http://localhost:19012/EfileService/EfileService.svc /l:C# /out:Reference.cs /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.EfileService

我想创建一个批处理文件(.bat 文件),它将在 Visual Studio 命令提示符下执行这两个命令.

i want to create a one batch file(.bat file) which will execute these two commands in visual studio command prompt.

推荐答案

我们可以创建一个批处理(.bat)文件来执行下面解释的 Visual Studio 命令提示符中的多个命令.

we can create a batch(.bat) file for executing the multiple commands in visual studio command prompt explained below.

调用C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"

上面的命令将调用visual studio命令提示符,然后我们必须编写我们的多个命令,然后它将被执行并将此文件保存在.bat文件中.

the above command will call the visual studio command prompt and then we have to wrote our multiple commands then it will be executed and save this file in .bat file.

这篇关于为visaul studio 命令创建批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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