visual-studiobatch-filetfstf-cli

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


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


Solution

  • 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