I only want to check out a path with powershell and also check in this path one minute later at Team Foundation Server.
How can i do this?
I have installed the tfs power tools at my server.
You don't need the power tools. Just use the tf.exe command line util that comes with Visual Studio with TFS Team Explorer. tf edit <file> /noprompt
to check out and tf checkin <file> /comment:$comment /noprompt
to check in. Look at the command line usage on tf.exe for more info tf /?
and tf checkin /?
. You will need to configure your PowerShell session with the Path to tf.exe. This is usually done by the VS vars batch files. But you should be able to simply add to the path like so: $PATH += "${VS110COMNTOOLS}..\Ide"
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With