how can I use tf.exe to checkin single file without getting popup dialog box?

424 Views Asked by At

I'm trying to do a checkin of a single file from the command line using tf.exe:

tf.exe checkin myfile.cs

But whenever I do, I get a popup dialog asking me to select source files.

How can I get it to checkin just this single file without getting the dialog? Popup dialog that hapopens when I try to do a checkin from command line

2

There are 2 best solutions below

0
Andy Li-MSFT On BEST ANSWER

You just need to add the /noprompt parameter.

Check in a change to a single item without using the Check In dialog box:

 c:\code\SiteApp\Main>tf checkin program.cs /noprompt
0
NextInLine On

Most likely you are seeing the popup because you aren't adding a comment. There may also be other policies your administrator request, but comment is the one normally required. As noted in the tf command-line documentation, you can specify a comment as follows:

tf.exe checkin /comment:"My comment" myfile.cs