Sourcesafe命令行选项 [英] Sourcesafe command line options

查看:147
本文介绍了Sourcesafe命令行选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题与Microsoft Visual Sourcesafe命令行选项,我希望有人跑过,可以帮助我。

I am having an issue with the Microsoft Visual Sourcesafe command line options that I'm hoping someone has run across and can assist me with.

我在DOS批处理文件中有以下行。

I have the following line in a DOS batch file.

"c:\Program Files\Microsoft Visual SourceSafe\ss.exe" GET 
    "$/Development Projects/Activity" -GL"C:\Compile\Activity" -R -Q 
    -Yname,password

在批处理文件中执行此行时,出现以下提示:

When this line is executed in the batch file the following prompt appears ...


将C:\Compile\Activity设置为项目的默认文件夹$ /开发项目/活动? / p>

Set C:\Compile\Activity as the default folder for project $/Development Projects/Activity?(Y/N)

我需要禁止此提示,以便让脚本无人值守运行。我认为-Q选项将允许静默运行,但它不会抑制此提示。

I need to suppress this prompt in order to let the script run unattended. I thought the -Q option would allow silent running but it does not suppress this prompt.

我搜索过,似乎找不到一个选项,将删除此提示。我不想为项目设置默认文件夹,所以我想默认答案为N如果可能。

I've searched and can't seem to find an option that will remove this prompt. I don't want to set the default folder for the project so I would like to default the answer to "N" if possible.

推荐答案

我认为Lieven的回答可能是你的赢家,但如果不是,你可以尝试用管道输入N来回答提示:

I think Lieven's answer may be a winner for you, but if it isn't you can try piping an 'N' to the command to answer the prompt for you:

@echo n | "c:\Program Files\Microsoft Visual SourceSafe\ss.exe" GET 
    "$/Development Projects/Activity" -GL"C:\Compile\Activity" -R -Q 
    -Yname,password

这篇关于Sourcesafe命令行选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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