Unable to determine the workspace.
-
Tuesday, February 01, 2011 2:25 PM
I have this script (bat file)
tf workspaces /s:http://project02:8080
tf workspace /s:http://project02:8080 Team.descomp;MyDomain\Myuser
tf workfold /workspace:Team.descomp
tf get $/Team/Main/Projects /recursive /force /nopromptI get this error: Unable to determine the workspace., when I try execute tf get.
Console output is:
Server: project02
Workspace Owner Computer Comment
----------------- ------- -------- ---------
DESCOMP MyUser DESCOMP
Team.descomp MyUser DESCOMP
============================================Workspace: Team.descomp (MyUser)
Server : http://project02:8080/
$/Team: C:\Temp\Team2
Unable to determine the workspace.Note: for $/Team (team project) has map in two machines: MyUser and Descomp
Workspace Owner Computer Comment
----------------- ------- -------- ---------
Team MyUser MyUser
Team.descomp MyUser DESCOMP
============================================Any suggestions
Should "Hi", "Thanks" and taglines and salutations be removed from posts? http://meta.stackoverflow.com/questions/2950/should-hi-thanks-and-taglines-and-salutations-be-removed-from-posts
All Replies
-
Tuesday, February 01, 2011 3:25 PMChange the working folder for the tf get to a folder that is mapped by the workspace.
Ewald - Please remember to mark the replies as answers if they help.

Blog: www.ewaldhofman.nl -
Tuesday, February 01, 2011 3:34 PM
How change working folder ???
command tf get only manage path in TeamProject not folder in filesystem...isn't?tf get $/Team/Main/Projects /recursive /force /noprompt
Should "Hi", "Thanks" and taglines and salutations be removed from posts? http://meta.stackoverflow.com/questions/2950/should-hi-thanks-and-taglines-and-salutations-be-removed-from-posts -
Tuesday, February 01, 2011 3:41 PM
Execute the command from a folder where the workspace is mapped
(for example if you do it from console:
cd c:\sources\myteamproject
tf get ...
)
Ewald - Please remember to mark the replies as answers if they help.

Blog: www.ewaldhofman.nl- Marked As Answer by Kiquenet Development Tuesday, February 01, 2011 3:57 PM
-
Wednesday, February 02, 2011 7:49 AM
finally, I us
pushd C:\Temp\Team2
"%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe" workspaces /s:http://project02:8080
Should "Hi", "Thanks" and taglines and salutations be removed from posts? http://meta.stackoverflow.com/questions/2950/should-hi-thanks-and-taglines-and-salutations-be-removed-from-posts

