为什么我一直期待着陈述的结束
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.run "cmd.exe /C "c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd" co -p "bla:bla@bla:1234/bla/" -is -eol on -o -rp "D:\ST_test" -cfgl "12.45.6"发布于 2014-03-18 11:31:30
找到了解决办法:
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.run "cmd /K ""c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd.exe"" co -p 123:123@123.com:7777/123/ -is -eol on -o -rp D:\ST_test -cfgl 3.1.006"谢谢大家!
发布于 2014-03-17 11:52:50
因为“必须由”在VBScript和关闭中转义)是伪造的:
>> s = "cmd.exe /C "c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd" co -p "bla:b
la@bla:1234/bla/" -is -eol on -o -rp "D:\ST_test" -cfgl "12.45.6")
>>
Error Number: 1025
Error Description: Expected end of statement
>> s = "cmd.exe /C ""c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd"" co -p ""bl
a:bla@bla:1234/bla/"" -is -eol on -o -rp ""D:\ST_test"" -cfgl ""12.45.6"""
>> WScript.Echo s
>>
cmd.exe /C "c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd" co -p "bla:bla@bla:1
234/bla/" -is -eol on -o -rp "D:\ST_test" -cfgl "12.45.6"
>>发布于 2014-03-17 21:11:32
如果是这样的话,那么很可能是您的命令被激活失败了。
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.run "cmd.exe /C ""c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd.exe"" co -p ""bla:bla@bla:1234/bla/"" -is -eol on -o -rp ""D:\ST_test"" -cfgl ""12.45.6"""您是否在“-rp”之前检查了您的D:\ST_test命令,因为在这里的2009年文档中,声明只使用rw或ro。
无论如何,我不知道星际团队,这不是一个答案。但由于其背后的参数,这一声明似乎失败了。
要正确测试它,请进入命令提示符并复制并通过以下操作:
cmd.exe /C "c:\Program Files (x86)\Borland\StarTeam Cross-Platform Client 2008 R2\stcmd" co -p "bl
a:bla@bla:1234/bla/" -is -eol on -o -rp "D:\ST_test" -cfgl "12.45.6"看看它是如何工作的,或者它是否告诉您要修复的错误。
https://stackoverflow.com/questions/22453469
复制相似问题