Disable Input

See Also

If you are creating a batch file containing a series of VSS commands (to run overnight, for instance), you don't want the program to pause in the middle to ask you a question. There are three command-line parameters you can use together to ensure that VSS does not prompt a user for input.

By default, VSS prompts you for a comment on many commands such as Add and Check In. However, you can use the -c option in the following three ways to avoid this prompt.

Command Action
–c– No comment is added.
"–cHello" Uses the string Hello as the comment.
-c@COMMENT.TXT Uses the contents of the file Comment.txt as the comment.

In addition to prompting for comments, VSS frequently asks yes or no questions. You can use the -i option to avoid these questions, as in the following examples.

Command Action
-i-y Automatically answers Yes to all Yes/No questions.
-i-n Automatically answers No to all Yes/No questions.
-i Use the default.

VSS may also prompt for a logon name. If you receive this prompt, you can use the -y option to supply the necessary information.