获取'tf.exe'程序需要安装的最小软件数量是多少?
我可以<spring:url value="/something" />在<a>标签内使用吗?
我正在使用VBScript,我的目标是能够用驱动器号代替我选择的路径.我需要D驱动器,如果它不可用,我需要检查它是否已经映射到正确的位置; 然后通知用户是否不是.我发现了这个:http://technet.microsoft.com/en-us/library/ee156605.aspx,我正在尝试调整他们的第二个例子:
Set objShell = WScript.CreateObject("WScript.Shell")
Set objExecObject = objShell.Exec("cmd /c ping -n 3 -w 1000 157.59.0.1")
Do While Not objExecObject.StdOut.AtEndOfStream
strText = objExecObject.StdOut.ReadLine()
If Instr(strText, "Reply") > 0 Then
Wscript.Echo "Reply received."
Exit Do
End If
Loop
Run Code Online (Sandbox Code Playgroud)
(我的改编):
Set objShell = WScript.CreateObject("WScript.Shell")
Set objExecObject = objShell.Exec("cmd /c substr")
strText = ""
Do While Not objExecObject.StdOut.AtEndOfStream
strText = strText & objExecObject.StdOut.ReadLine()
Loop
Wscript.Echo strText
Run Code Online (Sandbox Code Playgroud)
然后我可能会搜索告诉D驱动器映射位置的字符串.我也试过objShell.Exec("subst"),但我仍然没有得到任何输出.有没有人对我可能做错了什么有任何想法?或者有更好的方法来说明驱动器映射吗?谢谢,
213897
我正试图从命令行从TFS中获取一个项目.我有它在服务器上的位置(以...开头$/)和我想要放入的目录.
我导航到该目录,键入tf workspace /new /s:<servername>并输入工作区名称.
接下来我键入tf get /force /recursive /version:W<workspacename>,它返回'所有文件都是最新的',但它没有下载任何东西.
此外,我想将项目下载到工作区目录中,然后<projectname>,它目前创建了一堆文件夹(基于$/the/long/path/to/the/<projectname>服务器).
有没有办法可以做到这一点,还是我需要在完成后移动它?