windows - How to get list of changed files before checking them in using tf.exe (TFS) - Stack Overflow

admin2025-04-25  2

I have a batch file that make check-in in a directory of changed files. In general, command looks like:

tf.exe checkin /comment:"Update list of common files" /noprompt /recursive ./common

I want to add a list of these files into the check-in comment - how do I do that? It doesn't matter - adding, deleting, or updating files, I need just a list of them.

For example, when I add two files A.txt and B.txt I want to see comment: "Update: A.txt, B.txt".

I have a batch file that make check-in in a directory of changed files. In general, command looks like:

tf.exe checkin /comment:"Update list of common files" /noprompt /recursive ./common

I want to add a list of these files into the check-in comment - how do I do that? It doesn't matter - adding, deleting, or updating files, I need just a list of them.

For example, when I add two files A.txt and B.txt I want to see comment: "Update: A.txt, B.txt".

Share Improve this question asked Jan 16 at 11:22 n4meless0nlyn4meless0nly 1941 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The tf status command will report the status of files for TFVC.

tf.exe status ./common/* /noprompt /recursive

The default output provides one line per file. See the format argument. There isn't an option that will provide just a list of the file names. You will need to decide how best to handle the output for your needs.

转载请注明原文地址:http://anycun.com/QandA/1745534994a90889.html