【发布时间】:2015-12-07 05:47:44
【问题描述】:
您好,我想使用变量执行 cd C:\iwatch\trunk\CPCE Client\EfileServiceClient 命令,请帮助我解决以下变量。
我将此批处理文件保存在 C:\iwatch\trunk 文件夹中,因此 launchdir 变量具有文件夹名称。
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
Echo OFF
set "var1=cd"
set "var2=Client\EfileServiceClient"
Echo Launchdir: "%~dp0"
Echo Currentdir: "%CD%"
set "var3=%cd% Launchdir%var2%
Echo %var3%
svcutil http://localhost:19012/EfileService/EfileService.svc
执行上述批处理文件后,代理文件在 C:\iwatch\trunk 文件夹中生成,但我想在 C:\iwatch\trunk\CPCE Client\EfileServiceClient 文件夹中生成这些文件...
【问题讨论】:
标签: visual-studio-2010 visual-studio-2013 command command-prompt svcutil.exe