Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.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
Batch file 运行批处理文件从RationalTeamConcert获取代码更改_Batch File_Rational Team Concert - Fatal编程技术网

Batch file 运行批处理文件从RationalTeamConcert获取代码更改

Batch file 运行批处理文件从RationalTeamConcert获取代码更改,batch-file,rational-team-concert,Batch File,Rational Team Concert,我的脚本只需登录到RTC,然后接受更改集,这样我的本地存储库就可以更新到最新版本并准备好进行构建 lscm login ... (the rest omitted) lscm accept ... (the rest omitted) lscm logout ... (the rest omitted) 如果我在命令shell中逐个运行这些命令,它们工作得很好 但是,如果我将它们保存在.bat中并成批运行,那么在第一个命令(登录)完成后,执行就会停止 我做错了什么?我在谷歌搜索了半个小时后才发

我的脚本只需登录到
RTC
,然后接受更改集,这样我的本地存储库就可以更新到最新版本并准备好进行构建

lscm login ... (the rest omitted)
lscm accept ... (the rest omitted)
lscm logout ... (the rest omitted)
如果我在命令shell中逐个运行这些命令,它们工作得很好

但是,如果我将它们保存在.bat中并成批运行,那么在第一个命令(登录)完成后,执行就会停止

我做错了什么?

我在谷歌搜索了半个小时后才发现这个问题,希望这能帮助有同样问题的人

在Windows lscm上,它本身是一个批处理命令。要在批处理文件中调用它,您可能需要使用:

call lscm login ... 
call lscm accept ...
call lscm logout ...