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".
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.