I have an nant script that is calling on the tfs command line program (tf) to do some beanching and merging. I've cloacked these directories (excluded them, agent side checkout) in Team City because they are rather large and I don't need the files in them. So I had planned to uncloak the directory do the the merge and branch and then cloak them again using tf. But, the uncloak and cloak commands need to specify a workspace. While we only have a single agent running now and I could hardcode the workspace, In the future we will have multiple agents and they will have different workspaces. Is there a way to get the name of the workspace the agent is using? You must have access to this info somewhere because when using the agent side checkout all the files are mapped into that wokspace.
--actually the hardcoding won't work as TC will delete the workspace and add a different one at times.